fix: 위치보기 수정 (도면 오버플로우 제한 및 API 호출 경로 정상화)

This commit is contained in:
이태훈
2026-06-22 13:56:52 +09:00
parent f41f2378d7
commit 237ac9ee25
3 changed files with 13 additions and 6 deletions

View File

@@ -1,17 +1,19 @@
import { defineConfig } from 'vite';
import { resolve } from 'path';
const proxyTarget = process.env.VITE_DEV_PROXY_TARGET || 'http://localhost:3000';
export default defineConfig({
server: {
port: 8080,
host: true, // Listen on all local IPs
proxy: {
'/api': {
target: 'http://localhost:3000',
target: proxyTarget,
changeOrigin: true,
},
'/uploads': {
target: 'http://localhost:3000',
target: proxyTarget,
changeOrigin: true,
}
}