SSG i18n 404 pages. #8664
-
Hi 👋, It seems like there is no optimal way of doing internationalized pages using SSG.
Vercel returns only the 404 page located in the root, even for other languages, which is not the desired behavior. We can use The solutions I currently came up with are either to:
Is there a more feasible solution that I'm missing? Usage of |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Thanks for reaching out @Thesoreon! Your custom 404 page solution will depend on what framework or library you are using for your app. You could use a custom 404 API response as a localization technique to get the error message in the correct language for your visitor. Check out the section about creating a custom 404 API response for more information. |
Beta Was this translation helpful? Give feedback.
Thanks for reaching out @Thesoreon! Your custom 404 page solution will depend on what framework or library you are using for your app. You could use a custom 404 API response as a localization technique to get the error message in the correct language for your visitor. Check out the section about creating a custom 404 API response for more information.