next-env-vars
v1.0.2
Published
``` npm i next-env-vars ```
Downloads
6
Readme
Install
npm i next-env-vars
Usage
const withEnv = require('next-env-vars')({ envFiles: ['.env'] })
module.exports = withEnv({})
Then in your app you can use process.env.VARNAME and it will be populated at build time (only the env vars used)