21 lines
477 B
TypeScript
21 lines
477 B
TypeScript
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
|
|
export default defineConfig({
|
|
base: process.env.VITE_BASE_PATH || '/tori/',
|
|
define: {
|
|
__BUILD_DATE__: JSON.stringify(new Date().toISOString().slice(0, 10)),
|
|
},
|
|
plugins: [vue()],
|
|
server: {
|
|
proxy: {
|
|
'/tori/api': 'http://localhost:3000',
|
|
'/api/obj': 'http://localhost:3000',
|
|
'/ws/tori': {
|
|
target: 'ws://localhost:3000',
|
|
ws: true,
|
|
},
|
|
},
|
|
},
|
|
})
|