-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
bugSomething isn't workingSomething isn't workingp3-edge-caseSvelteKit cannot be used in an uncommon waySvelteKit cannot be used in an uncommon way
Milestone
Description
Describe the bug
When using adapter static with a redirect server root, no root index.html is exported.
This results in a 404 error when fetching the root index.html, instead of redirecting to the wanted location.
src/
- routes/
- index.ts --> this one redirects to en/index.svelte
- en/
- index.svelte
What happens:
No root index.html is created when exporting with adapter static.
That is normal, since server routes are simply ignored, but :
What i'd like
- Emit a warning about using adapter static with a repo that has server routes.
- // MAYBE?? Provide a better way to use redirect routes
Workaround
replace index.ts with index.svelte and put the script content in <script context="module>
Reproduction
coming soon
Logs
No response
System Info
Github PagesSeverity
annoyance
Additional Information
No response
derkan
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingp3-edge-caseSvelteKit cannot be used in an uncommon waySvelteKit cannot be used in an uncommon way