Can't fetch data on server side using axios when build docker on production #75224
Unanswered
croissant1998
asked this question in
Help
Replies: 2 comments
-
Is apiUrl, or the baseURL getting undefined? it has to be that the env vars are not present, but let's try to debug... |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi, I faced the same problem. How did you solve it? |
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.
-
Summary
Error can't fetch data on server side using axios when I build docker to staging production. In dev, It work!!.
I'm not sure what's the reason.
In my docker-compose file

In Dockerfile of Nextjs project

And In .env / Next config and Axios config file



Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions