Compare commits

..

No commits in common. "bb76dc9ad47509a6ff12903f62ab93e63e6567cf" and "febea389c9a0a682decb82b4ce4519736c563cea" have entirely different histories.

3 changed files with 0 additions and 17 deletions

View File

@ -4,7 +4,6 @@
"private": true,
"scripts": {
"dev": "env-cmd -f .env.localhost next dev",
"local:dev": "env-cmd -f .env.localhost.dev next dev",
"build": "env-cmd -f .env.productionnext build",
"build:dev": "env-cmd -f .env.development next build",
"start:cluster1": "env-cmd -f .env.production next start -p 5000",

View File

@ -1,6 +1,5 @@
import configDevelopment from './config.development'
import configLocal from './config.local'
import configLocalDev from './config.local.dev'
import configProduction from './config.production'
// 클라이언트에서는 이 함수를 사용하여 config 값을 참조합니다.
@ -8,8 +7,6 @@ const Config = () => {
switch (process.env.NEXT_PUBLIC_RUN_MODE) {
case 'local':
return configLocal
case 'local.dev':
return configLocalDev
case 'development':
return configDevelopment
case 'production':

View File

@ -1,13 +0,0 @@
import getConfigs from './config.common'
// 환경마다 달라져야 할 변수, 값들을 정의합니다. (여기는 local 환경에 맞는 값을 지정합니다.)
const baseUrl = 'http://1.248.227.176:5000'
const mode = 'local.dev'
// 환경마다 달라져야 할 값들을 getConfig 함수에 전달합니다.
const configLocalDev = getConfigs({
baseUrl,
mode,
})
export default configLocalDev