rsnext/examples/with-dotenv/next.config.js
francismarcus f3bda83ecc Update dotenv example (#9372)
* Update next.config.js

* Update .env

* Update next.config.js

* Update package.json

* Apply lint-fix

* Update env var name
2019-11-10 19:45:12 -08:00

7 lines
196 B
JavaScript

require('dotenv').config()
module.exports = {
env: {
// Reference a variable that was defined in the .env file and make it available at Build Time
TEST_VAR: process.env.TEST_VAR,
},
}