rsnext/examples/with-dotenv/next.config.js

8 lines
196 B
JavaScript
Raw Normal View History

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,
},
}