Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error GET http://localhost:5173/docs/@fs... #1632

Closed
jkkDeng opened this issue Nov 21, 2022 · 1 comment · Fixed by #1647
Closed

error GET http://localhost:5173/docs/@fs... #1632

jkkDeng opened this issue Nov 21, 2022 · 1 comment · Fixed by #1647

Comments

@jkkDeng
Copy link

jkkDeng commented Nov 21, 2022

i learn pnpm workspaces. and met a problem.
this vitepress project and other project (name: one) in the workspace.
they relate like this:
pnpm add project-one --workspace --filter vitepress-project 。

when i "run dev" , is ok show: http://localhost:5173/docs/ but here is error GET http://localhost:5173/docs/@fs...
and vscode console show me :
Refer to docs https://vitejs.dev/config/server-options.html#server-fs-allow for configurations and more details.
so i follow it:
contains field in workspace package.json --yes
pnpm-workspace.yaml --yes
i also use:
export default defineConfig({
server: {
fs: {
// Allow serving files from one level up to the project root
allow: ['..']
}
}
})
but the error never correct. (help me!!)

i read the vitepress originalcode the defineConfig(config) config has no ‘server’ ...

whether is that problem or not?

@jkkDeng
Copy link
Author

jkkDeng commented Nov 21, 2022

error in the browser:
Failed to load resource: the server responded with a status of 403 (Forbidden)

@jkkDeng jkkDeng closed this as completed Nov 21, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant