mirror of
https://github.com/headporter81/specialsource-homepage-frontend.git
synced 2026-08-08 15:21:11 +09:00
Initial commit
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user