Skip to content

Instantly share code, notes, and snippets.

@Luke-SNAW
Last active February 8, 2022 07:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Luke-SNAW/2e0978411cf7f5d4a3b506ccf8a44720 to your computer and use it in GitHub Desktop.
Save Luke-SNAW/2e0978411cf7f5d4a3b506ccf8a44720 to your computer and use it in GitHub Desktop.
[next.js .env for client] #nextjs
// Next.js comes with built-in support for environment variables.
// https://nextjs.org/docs/basic-features/environment-variables
module.exports = {
env: {
LOCAL_API_ENDPOINT: process.env.LOCAL_API_ENDPOINT,
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment