-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation
Milestone
Description
Describe the bug
Since upgrading to the latest version of SvelteKit a site which is compiled with the static adapter no longer works when served via Nginx.
For example routing to https://mywebsite.com works but routing to https://mywebsite.com/hello results in 404. If I were to navigate to the second link internally via an <a>
the 404 would not appear. I can resolve the issue by pinning the SvelteKit version to something like 250 but being on the HEAD manifests the error.
Reproduction
- Build any site with static adapter and SvelteKit version 266
- Host output with a web server such as nginx
- Route to anything except index.html directly or navigate there and refresh. For example https//mysite.com/anotherpage
Logs
No response
System Info
System:
OS: macOS 12.2
CPU: (8) arm64 Apple M1
Memory: 553.13 MB / 16.00 GB
Shell: 3.3.1 - /opt/homebrew/bin/fish
Binaries:
Node: 17.4.0 - /opt/homebrew/bin/node
Yarn: 1.22.10 - /opt/homebrew/bin/yarn
npm: 8.3.1 - /opt/homebrew/bin/npm
Browsers:
Brave Browser: 96.1.32.115
Chrome: 98.0.4758.80
Firefox: 97.0
Safari: 15.3
npmPackages:
@sveltejs/adapter-static: next => 1.0.0-next.28
@sveltejs/kit: next => 1.0.0-next.266
svelte: ^3.46.4 => 3.46.4
Severity
serious, but I can work around it
Additional Information
No response
bartholomej, russellsamora, frederikhors, yuanchuan, mikolajkazmierczak and 2 more
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation