serveStaticMiddleware
should not fail when allow
is configured
#5416
Labels
serveStaticMiddleware
should not fail when allow
is configured
#5416
Describe the bug
I would like to only allow serving of the
publicDir
in SvelteKit via theallow
method. However, it looks likeroot
is always servedvite/packages/vite/src/node/server/index.ts
Line 528 in 1f4723b
When I set
server.fs.allow
to only allow serving the static directory that causes all requests to fail sinceserveStaticMiddleware
is serving theroot
directory and will fail the access checkReproduction
Set
kit.vite.server.fs.allow
equal tokit.files.assets
(i.e.['static']
) and then runnpm run dev
System Info
Used Package Manager
npm
Logs
Validations
The text was updated successfully, but these errors were encountered: