Closed alienzhangyw closed 8 months ago
This seems like an issue with Next.js, and not specifically related to next-international. Apparently you have to move not-found.tsx
outside the [locale]
folder, directly into app
, with an empty layout file.
This seems like an issue with Next.js, and not specifically related to next-international. Apparently you have to move
not-found.tsx
outside the[locale]
folder, directly intoapp
, with an empty layout file.
But I cannot internationalize the custom 404 page if I move it out
But I cannot internationalize the custom 404 page if I move it out
Yes I known, but I don't have any other solution for now since this is a Next.js bug :(
OK, close for now.
https://github.com/vercel/next.js/issues/55555#issuecomment-1724887409
try this, it work for me :D
They're not working after I put all files into [locale] folder. My file struct:![image](https://github.com/QuiiBz/next-international/assets/58874541/f740350b-dbe6-4281-ba54-f84db0af1251)
localhost:4000/404 showing error:![image](https://github.com/QuiiBz/next-international/assets/58874541/a2818f99-b751-4d1d-b0ed-4eff71f17dd8)
localhost:4000/en-US/404 showing white screen and multiple console errors:![image](https://github.com/QuiiBz/next-international/assets/58874541/071cd210-a9c9-4259-a067-cd9af6c5eb38)
Related issue: https://github.com/vercel/next.js/issues/54239