Use a `.env` file
The .env
file should contain the api endpoint (API_ENDPOINT
) and app port (PORT
, please use process.env.PORT || 3000
). To use env vars in the client code, nuxtjs has an env property. You might also need dotenv
to load the local .env file.