Files
ITAM/vite.config.ts
이태훈 621b05a890
Some checks failed
ITAM Code Check / build-and-config-check (push) Successful in 18s
ITAM Docker Build Check / docker-build-check (push) Failing after 21s
chore: clean up build artifacts, temporary excel locks, duplicate plans, and commit current project state
2026-06-22 11:26:26 +09:00

30 lines
650 B
TypeScript

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: proxyTarget,
changeOrigin: true,
},
'/uploads': {
target: proxyTarget,
changeOrigin: true,
}
}
},
build: {
rollupOptions: {
input: {
main: resolve(__dirname, 'index.html'),
map_editor: resolve(__dirname, 'map_editor.html'),
}
}
}
});