UNPKG

next-runtime-dotenv

Version:

Expose environment variables to the runtime config of Next.js

14 lines (10 loc) 202 B
const nextRuntimeDotenv = require('next-runtime-dotenv') const withConfig = nextRuntimeDotenv({ public: [ 'PUBLIC_VALUE' ], server: [ 'SERVER_ONLY' ] }) module.exports = withConfig()