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
Using a non-empty string value for paths.base in svelte.config.js with adapter-node will result in a site where all .js and .css files requests return 404.
There is a warning message in npm run build that says: (!) "base" option should end with a slash.
However, if you try to put a value that ends in slash then an error is thrown that paths.base cannot end in a slash.
Reproduction
start a skeleton app
replace adapter-auto with adapter-node
set a value for paths.base in svelte.config.js like "/foo"
npm run build
node build/index.js
navigate to the app with devtools open and observe that the asset chunks are 404
Logs
Example request for an app with `paths.base == "/foo"`
GET
scheme
http
host
127.0.0.1:3000
filename
/foo/_app/immutable/start-e87edd60.js
Address
127.0.0.1:3000
Status
404
Not Found
Version HTTP/1.1
Transferred 592 B (0 B size)
Referrer Policy strict-origin-when-cross-origin
Describe the bug
Using a non-empty string value for
paths.base
insvelte.config.js
with adapter-node will result in a site where all .js and .css files requests return 404.There is a warning message in
npm run build
that says:(!) "base" option should end with a slash.
However, if you try to put a value that ends in slash then an error is thrown that
paths.base
cannot end in a slash.Reproduction
paths.base
insvelte.config.js
like"/foo"
npm run build
node build/index.js
Logs
System Info
Severity
blocking all usage of SvelteKit
Additional Information
I can't use Svelte kit for my project at this point because it must be served at a non-root endpoint.
The text was updated successfully, but these errors were encountered: