You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: