I previously saved the env file in the local environment and loaded it from next.config.js and used it.
The env file contains the server api address or secret key.