반응형
If you are using version > 2.13 then you won't need to install dotenv anymore because it's already built in https://nuxtjs.org/docs/directory-structure/nuxt-config/#runtimeconfig
.env support Similar to vue-cli (*), .env file will be always loaded via dotenv and is accessible via process.env and options._env. process.env is updated so one can use it right inside nuxt.config for runtime config. Values are interpolated and expanded with an improved version of dotenv-expand. .env file is also watched to reload during nuxt dev. Path can be set via cli --dotenv or disabled by --dotenv false.
I created the .env.xxx files and created the corresponding scripts
반응형
'Web > Js' 카테고리의 다른 글
[React]setState Callback 함수 사용 (0) | 2023.01.11 |
---|---|
[Redux] redux 기본 - action dispatch / subscribe (0) | 2022.12.19 |
데이터레이어(dataLayer)란 무엇일까? (0) | 2022.03.18 |
Custom Hooks을 만들어보자! (0) | 2022.03.17 |
useCallback 과 useMemo 의 차이 (0) | 2022.03.16 |