feat: QR 자산 스캔 점검, 모바일 웹뷰 및 관리자 승인 시스템 구현 (DB 기반 맵 좌표 저장 단일화 포함)
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
import { defineConfig } from 'vite';
|
||||
import { defineConfig, loadEnv } from 'vite';
|
||||
import { resolve } from 'path';
|
||||
|
||||
const proxyTarget = process.env.VITE_DEV_PROXY_TARGET || 'http://localhost:3000';
|
||||
const env = loadEnv('', process.cwd(), '');
|
||||
const backendPort = env.PORT || '3001';
|
||||
const proxyTarget = process.env.VITE_DEV_PROXY_TARGET || `http://localhost:${backendPort}`;
|
||||
|
||||
export default defineConfig({
|
||||
server: {
|
||||
@@ -23,6 +25,7 @@ export default defineConfig({
|
||||
input: {
|
||||
main: resolve(__dirname, 'index.html'),
|
||||
map_editor: resolve(__dirname, 'map_editor.html'),
|
||||
mobile: resolve(__dirname, 'mobile.html'),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user