Because you need to “forward” your environment variables in your .env file into your next.config.js file.

If you don’t add it to the next.config.js, the value of apiUrl would be “undefined”. So do this:

Because you need to “forward” your environment variables in your .env file into your next.config.js file.
If you don’t add it to the next.config.js, the value of apiUrl would be “undefined”. So do this: