From 7fa0ee4598ff99d250755544aa573b465210b719 Mon Sep 17 00:00:00 2001 From: Jay Sheen Date: Wed, 17 Sep 2025 10:05:25 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B9=8C=EB=93=9C/=EB=B0=B0=ED=8F=AC=20?= =?UTF-8?q?=EA=B2=BD=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.production | 6 ++++-- .eslintrc.cjs | 2 +- .gitignore | 1 + Makefile | 10 +++++----- eslint.config.ts | 2 +- package.json | 2 +- server.js | 4 ++-- vite.config.mjs | 2 +- 8 files changed, 16 insertions(+), 13 deletions(-) diff --git a/.env.production b/.env.production index ed6b3bc..eaea4dd 100644 --- a/.env.production +++ b/.env.production @@ -1,5 +1,7 @@ VITE_APP_ENV=production -VITE_APP_AUTH_PROXY_HOST='http://auth.nicepay.co.kr' -VITE_APP_API_PROXY_HOST='http://partner.nicepay.co.kr' +VITE_APP_AUTH_PROXY_HOST='http://3.35.79.250:8090' +VITE_APP_API_PROXY_HOST='http://3.35.79.250:8080' +# VITE_APP_AUTH_PROXY_HOST='http://auth.nicepay.co.kr' +# VITE_APP_API_PROXY_HOST='http://partner.nicepay.co.kr' GENERATE_SOURCEMAP=false SENTRY_AUTH_TOKEN=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 \ No newline at end of file diff --git a/.eslintrc.cjs b/.eslintrc.cjs index e105ad3..cc7449f 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -8,7 +8,7 @@ module.exports = { 'plugin:react/jsx-runtime', 'plugin:react-hooks/recommended', ], - ignorePatterns: ['dist', '.eslintrc.cjs'], + ignorePatterns: ['dist', 'build', '.eslintrc.cjs'], parser: '@typescript-eslint/parser', parserOptions: { ecmaVersion: 'latest', diff --git a/.gitignore b/.gitignore index b531dc9..be193d7 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,7 @@ lerna-debug.log* node_modules dist +build dist-ssr *.local diff --git a/Makefile b/Makefile index a87b45d..37171ce 100644 --- a/Makefile +++ b/Makefile @@ -33,15 +33,15 @@ build-staging: ## Build for staging environment with zip packaging pnpm run build:staging @echo "Creating deployment package..." $(eval VERSION := $(shell node -p "require('./package.json').version")) - cd dist && zip -r ../nice-app-web-staging-v$(VERSION).zip . && cd .. - @echo "Deployment package created: nice-app-web-staging-v$(VERSION).zip" + cd build && zip -r ../dist/nice-app-web-staging-$(VERSION).zip . && cd .. + @echo "Deployment package created: nice-app-web-staging-$(VERSION).zip" build-production: ## Build for production with zip packaging pnpm run build @echo "Creating production deployment package..." $(eval VERSION := $(shell node -p "require('./package.json').version")) - cd dist && zip -r ../nice-app-web-production-v$(VERSION).zip . && cd .. - @echo "Deployment package created: nice-app-web-production-v$(VERSION).zip" + cd build && zip -r ../dist/nice-app-web-production-$(VERSION).zip . && cd .. + @echo "Deployment package created: nice-app-web-production-$(VERSION).zip" preview: ## Preview production build pnpm run preview @@ -50,7 +50,7 @@ lint: ## Run linting pnpm run lint clean: ## Clean node_modules, dist and Docker artifacts - rm -rf node_modules dist .pnpm-store + rm -rf node_modules build dist .pnpm-store docker system prune -f # Docker Setup diff --git a/eslint.config.ts b/eslint.config.ts index 719f2df..3584b3d 100644 --- a/eslint.config.ts +++ b/eslint.config.ts @@ -132,7 +132,7 @@ const config = [ }, }, { - ignores: ['dist', 'node_modules', '*.config.js', 'tailwind.config.ts'], + ignores: ['dist', 'build', 'node_modules', '*.config.js', 'tailwind.config.ts'], }, ] diff --git a/package.json b/package.json index 9cacfea..5c20ead 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "type": "module", "scripts": { "dev": "env-cmd -f .env.development vite --host --open", - "build:development": "env-cmd -f .env.development vite build && rm -rf dist/development && mv build dist", + "build:development": "env-cmd -f .env.development vite build", "build": "env-cmd -f .env.production vite build", "lint": "eslint . --ext js,jsx,ts,tsx --report-unused-disable-directives --max-warnings 0", "preview": "env-cmd -f .env.development vite preview" diff --git a/server.js b/server.js index ef631ee..abda7a4 100644 --- a/server.js +++ b/server.js @@ -20,10 +20,10 @@ app.use( }), ); -app.use(express.static(path.join(__dirname, 'dist'))); +app.use(express.static(path.join(__dirname, 'build'))); app.get('*', (req, res) => { - res.sendFile(path.join(__dirname, 'dist', 'index.html')); + res.sendFile(path.join(__dirname, 'build', 'index.html')); }); app.listen(8089, () => { diff --git a/vite.config.mjs b/vite.config.mjs index c62f6a5..c5aa51a 100644 --- a/vite.config.mjs +++ b/vite.config.mjs @@ -57,7 +57,7 @@ export default ({ mode }) => { return defineConfig({ build: { - outDir: 'dist', + outDir: 'build', sourcemap: true, target: 'es2015', rollupOptions: {