next-env-vars
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

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)

/next-env-vars/

    Package Sidebar

    Install

    npm i next-env-vars

    Weekly Downloads

    3

    Version

    1.0.2

    License

    ISC

    Unpacked Size

    2.68 kB

    Total Files

    6

    Last publish

    Collaborators

    • xmorse