Replies: 3 comments 1 reply
-
Hi, you can use a _error.js file in your pages folder, and depends on how you set the language env variables, change the language accordingly. |
Beta Was this translation helpful? Give feedback.
1 reply
-
If you need dynamic content you can fetch the dynamic content client-side. |
Beta Was this translation helpful? Give feedback.
0 replies
-
My approach to this will likely be to render the 404 page (pages/404.js) multiple times with different query params, and place them into different locations during static export ( |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Although I see well that you force to always generate 404.html statically, sometimes as in my case I need it to be dynamic because the content depends on the language, do you know any way to do it easily?
Another thing, I have realized that it is generating two
404.html
files, one in theout
root and another in theout/404/404.html
folder, do you know what is due?Beta Was this translation helpful? Give feedback.
All reactions