Enforce case sensitivity when serving static files #9260
Labels
enhancement
New feature or request
p3-downstream-blocker
Blocking the downstream ecosystem to work properly (priority)
Description
SvelteKit enforces case sensitivity so that your code works if you develop on Mac / Windows and then deploy to Linux. It also becomes easier to work on a code base where people are using different OS.
I'd like to remove SvelteKit's static file serving and rely on Vite's, but we'd first need to standardize the behaviors so that they're the same.
Suggested solution
Here's SvelteKit's solution:
Luke has said he doesn't want to add it as an option in
sirv
(lukeed/sirv#141), so it would need to be implemented in Vite.Alternative
No response
Additional context
SvelteKit historically hasn't used the
publicDir
andbase
options, but does its own static asset serving. I put together a branch to use Vite's implementation, but some of our tests are failing with it due to this issue, which is a blocker for us.https://github.com./sveltejs/kit/pull/5601/files#r925101030
Validations
The text was updated successfully, but these errors were encountered: