Replies: 1 comment
-
Maybe only the favicon is related to next-intl. |
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
-
Hello,
I'm using Next.js and
next-intl
in my application. I'm building a Docker image for this application, but something goes wrong during the process.When I run the server and visit some (not all) pages and refresh them, I end up on a 404 page, and I see two error messages.
While routing to the page there is no issue. Only if I refresh the already loaded page.
On the client side:
Client-side Error Messages
I'm not sure, but perhaps this problem is caused by Next.js because, at the same time, the server console says:
Server Console Output
I followed the documentation exactly:
src/middleware.ts
View Code
src/i18n/request.ts
View Code
src/i18n/routing.ts
View Code
src/app/[locale]/layout.tsx
View Code
src/app/[locale]/not-found.tsx
View Code
next.config.mjs
View Code
My problem only occurs in the Docker file I build on my x86 system, so maybe it is related. On an ARM system, the file doesn't work because there's a specific x86 app included (Google Chrome):
Dockerfile
View Code
The build occurs in a GitLab pipeline and is pushed to the worker building the Docker image through the artifacts function. The build itself:
GitLab CI Configuration
View Code
Do anybody has an idea where the problem comes from or is it a next-intl bug? Or maybe it is not related with next intl at all???
T
Beta Was this translation helpful? Give feedback.
All reactions