NextJS - Set dynamic environment variables at the start of the application
问题 In our implementation process we created a single building and went through the different stages (integration, staging and production). In each of the environments, we have variable environmental differences. The problem is that when we started the server it only referred to the environment variables on the server, but in the client the process.env file is empty. stack: "next": "5.0.0" "babel-plugin-inline-dotenv": "1.1.1", for load .env file is used "inline-dotenv" 回答1: You can use