Vite-plugin-ssr build mode #660
Unanswered
alivadjid
asked this question in
Help & Questions
Replies: 1 comment 3 replies
-
Actually, the docs about i18n with pre-rendering improved quite a lot the last couple of days: https://vite-plugin-ssr.com/i18n#pre-rendering. Let me know whether these new docs help or not. Also make sure to use the latest VPS version (a lot of improved warnings around i18n and pre-rendering). I'll be releasing a new version tomorrow that will further improve the i18n warnings. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First, thanks @brillout for your great package! It very useful 👍
I'm using vite-ssr-plugin in a few projects, and I found an interesting thing.
In this project i used vite-ssr with vue3 and custom internationalization code.
And the thing is: on development mode every works fine, user choose locale and see that text is changing. Url like this:
/fr-fr/about
. Locale Franch and page about.But on prod mode (after start build command). User choose locale and url is changing
/fr-fr/about
. But here is appearing a message:404 Page not found
.I solved this error by adding folders with the name of locale.
/pages/fr-FR/[site-pages]
and adding empty vue components. And it works correct.Is this a correct solution to solve this? Or maybe there is a better solution?
Beta Was this translation helpful? Give feedback.
All reactions