Unable to load dynamic routes (Rest parameters) directly in the browser using svelteKit and Vercel. #11774
Unanswered
aakash14goplani
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Issue Description: Routes structure is something like this
Navigating to
/my-base-url/b/en/test
from/my-base-url/a
or/my-base-url/b
using thegoto()
of sveltekit router works fine. The issue arises when I load/my-base-url/b/en/test
directly in the browser.Analysis done so far:
%sveltekit.head%
in app.html which is replaced by link tags with relative path in source throws 404. A similar issue was reported on Stack Overflow and based on that I tried updating my vercel.json file to:Stack used: Sveltekit (v2.5.0) + Vite(v5.0.12) + @sveltejs/adapter-vercel (v5.1.0)
Error from console:

Beta Was this translation helpful? Give feedback.
All reactions