Nextjs use dotnenv

Code examples

0
0

nextjs use dotnenv

module.exports = {
    compiler: {
        removeConsole: false
    },
    env: {
        DEVELOPMENT: true,
        MAILCHIMP_API_KEY: "874gd87vs7538dv8dsvsw8tv-us19",
        MAILCHIMP_API_SERVER: "us19",
        MAILCHIMP_AUDIENCE_ID: "387gdhg38d"
    },
    swcMinify: true,
}

// Modify your next.js file like this and later on you can call your environment files like this:
// Don't forget to restart the NextJS Service !!! 
console.log(process.env.DEVELOPMENT)

Similar pages

Similar pages with examples

In other languages

This page is in other languages

Русский
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................