Nextjs ใช้ dotnenv

รหัสตัวอย่าง

0
0

nextjs ใช้ 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)

หน้าคล้ายกัน

คล้ายกันหน้ากับตัวอย่าง

ในภาษาอื่นๆ

หน้านี้อยู่ในภาษาอื่นๆ

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

ดังอยู่ในนี้หมวดหมู่

ดังหน้ากับตัวอย่างอยู่ในหมวดหมู่