Nextjs utilizzare dotnenv

Esempi di codice

0
0

nextjs utilizzare 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)

Pagine correlate

Pagine di esempio simili

In altre lingue

Questa pagina è in altre lingue

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