diff --git a/.env b/.env new file mode 100644 index 0000000..7b7d94a --- /dev/null +++ b/.env @@ -0,0 +1,3 @@ +NEXT_PUBLIC_API_BASE=/api +NEXT_PUBLIC_STORE_KEY=kri-local-storage-key-32-bytes!! +NEXT_PUBLIC_STORE_IV=kri-local-iv-16! diff --git a/.env.development b/.env.development new file mode 100644 index 0000000..8903406 --- /dev/null +++ b/.env.development @@ -0,0 +1,3 @@ +NEXT_PUBLIC_ENV=development +ENV=development +API_SERVER=http://127.0.0.1:4015/api/v1 diff --git a/.env.example b/.env.example deleted file mode 100644 index 4277422..0000000 --- a/.env.example +++ /dev/null @@ -1,9 +0,0 @@ -# 모든 환경 공통 -NEXT_PUBLIC_API_BASE=/api -NEXT_PUBLIC_STORE_KEY=change-this-storage-key-32-bytes -NEXT_PUBLIC_STORE_IV=change-this-iv-16 - -# 환경별 값 (.env.local / .env.development / .env.production) -NEXT_PUBLIC_ENV=local -ENV=local -API_SERVER=http://localhost:4015/api/v1 diff --git a/.env.local b/.env.local new file mode 100644 index 0000000..f50767d --- /dev/null +++ b/.env.local @@ -0,0 +1,3 @@ +NEXT_PUBLIC_ENV=local +ENV=local +API_SERVER=http://localhost:4015/api/v1 diff --git a/.env.production b/.env.production new file mode 100644 index 0000000..d834dd5 --- /dev/null +++ b/.env.production @@ -0,0 +1,3 @@ +NEXT_PUBLIC_ENV=production +ENV=production +API_SERVER=http://127.0.0.1/api/v1 diff --git a/.gitignore b/.gitignore index 5efe7ee..2552bca 100644 --- a/.gitignore +++ b/.gitignore @@ -15,9 +15,4 @@ yarn-debug.log* yarn-error.log* .pnpm-debug.log* .idea/ -*.iml - -# Local environment files -.env -.env.* -!.env.example +*.iml \ No newline at end of file