import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' import { fileURLToPath, URL } from 'node:url' export default defineConfig({ plugins: [vue()], resolve: { alias: { '@': fileURLToPath(new URL('./src', import.meta.url)) // @ 기호를 src 폴더 주소로 매핑 } }, server: { proxy: { // 로컬에서 /api로 요청을 보내면 백엔드 NAS 서버로 주소를 전달해 줍니다. '/api': { target: 'http://192.168.0.215:18080', changeOrigin: true } } } })