빌드/배포 경로 변경

This commit is contained in:
Jay Sheen
2025-09-17 10:05:25 +09:00
parent 1615fa3760
commit 7fa0ee4598
8 changed files with 16 additions and 13 deletions

View File

@@ -1,5 +1,7 @@
VITE_APP_ENV=production VITE_APP_ENV=production
VITE_APP_AUTH_PROXY_HOST='http://auth.nicepay.co.kr' VITE_APP_AUTH_PROXY_HOST='http://3.35.79.250:8090'
VITE_APP_API_PROXY_HOST='http://partner.nicepay.co.kr' 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 GENERATE_SOURCEMAP=false
SENTRY_AUTH_TOKEN=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 SENTRY_AUTH_TOKEN=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

View File

@@ -8,7 +8,7 @@ module.exports = {
'plugin:react/jsx-runtime', 'plugin:react/jsx-runtime',
'plugin:react-hooks/recommended', 'plugin:react-hooks/recommended',
], ],
ignorePatterns: ['dist', '.eslintrc.cjs'], ignorePatterns: ['dist', 'build', '.eslintrc.cjs'],
parser: '@typescript-eslint/parser', parser: '@typescript-eslint/parser',
parserOptions: { parserOptions: {
ecmaVersion: 'latest', ecmaVersion: 'latest',

1
.gitignore vendored
View File

@@ -9,6 +9,7 @@ lerna-debug.log*
node_modules node_modules
dist dist
build
dist-ssr dist-ssr
*.local *.local

View File

@@ -33,15 +33,15 @@ build-staging: ## Build for staging environment with zip packaging
pnpm run build:staging pnpm run build:staging
@echo "Creating deployment package..." @echo "Creating deployment package..."
$(eval VERSION := $(shell node -p "require('./package.json').version")) $(eval VERSION := $(shell node -p "require('./package.json').version"))
cd dist && zip -r ../nice-app-web-staging-v$(VERSION).zip . && cd .. cd build && zip -r ../dist/nice-app-web-staging-$(VERSION).zip . && cd ..
@echo "Deployment package created: nice-app-web-staging-v$(VERSION).zip" @echo "Deployment package created: nice-app-web-staging-$(VERSION).zip"
build-production: ## Build for production with zip packaging build-production: ## Build for production with zip packaging
pnpm run build pnpm run build
@echo "Creating production deployment package..." @echo "Creating production deployment package..."
$(eval VERSION := $(shell node -p "require('./package.json').version")) $(eval VERSION := $(shell node -p "require('./package.json').version"))
cd dist && zip -r ../nice-app-web-production-v$(VERSION).zip . && cd .. cd build && zip -r ../dist/nice-app-web-production-$(VERSION).zip . && cd ..
@echo "Deployment package created: nice-app-web-production-v$(VERSION).zip" @echo "Deployment package created: nice-app-web-production-$(VERSION).zip"
preview: ## Preview production build preview: ## Preview production build
pnpm run preview pnpm run preview
@@ -50,7 +50,7 @@ lint: ## Run linting
pnpm run lint pnpm run lint
clean: ## Clean node_modules, dist and Docker artifacts 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 system prune -f
# Docker Setup # Docker Setup

View File

@@ -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'],
}, },
] ]

View File

@@ -5,7 +5,7 @@
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "env-cmd -f .env.development vite --host --open", "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", "build": "env-cmd -f .env.production vite build",
"lint": "eslint . --ext js,jsx,ts,tsx --report-unused-disable-directives --max-warnings 0", "lint": "eslint . --ext js,jsx,ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "env-cmd -f .env.development vite preview" "preview": "env-cmd -f .env.development vite preview"

View File

@@ -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) => { app.get('*', (req, res) => {
res.sendFile(path.join(__dirname, 'dist', 'index.html')); res.sendFile(path.join(__dirname, 'build', 'index.html'));
}); });
app.listen(8089, () => { app.listen(8089, () => {

View File

@@ -57,7 +57,7 @@ export default ({ mode }) => {
return defineConfig({ return defineConfig({
build: { build: {
outDir: 'dist', outDir: 'build',
sourcemap: true, sourcemap: true,
target: 'es2015', target: 'es2015',
rollupOptions: { rollupOptions: {