빌드/배포 경로 변경
This commit is contained in:
@@ -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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
|
||||
@@ -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',
|
||||
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -9,6 +9,7 @@ lerna-debug.log*
|
||||
|
||||
node_modules
|
||||
dist
|
||||
build
|
||||
dist-ssr
|
||||
*.local
|
||||
|
||||
|
||||
10
Makefile
10
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
|
||||
|
||||
@@ -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'],
|
||||
},
|
||||
]
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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, () => {
|
||||
|
||||
@@ -57,7 +57,7 @@ export default ({ mode }) => {
|
||||
|
||||
return defineConfig({
|
||||
build: {
|
||||
outDir: 'dist',
|
||||
outDir: 'build',
|
||||
sourcemap: true,
|
||||
target: 'es2015',
|
||||
rollupOptions: {
|
||||
|
||||
Reference in New Issue
Block a user