[sveltekit] Solution for issues on the Main Route "/" #179
alcibiadesc
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If you are experiencing problems with the i18n library in the main path (/), such as the default language being displayed on the main as opposed to the subpages, you may need to make some adjustments.
This behavior is a bit tricky since I have only found it when deploying in vercel, in local library works correctly. But of course "in my local it works" is not enough.
Option 1. Disable Prerendering
Option 2. Delete the file +page.js
Directly delete the file in routes/+page.js
I hope this helps you to avoid wasting time trying to find the source of the bug.
Beta Was this translation helpful? Give feedback.
All reactions