tori/web/vite.config.ts
Fam Zheng ae72e699f4 refactor: move routes under /tori/ prefix and add /api/obj mount
Routes now live at /tori/api, /ws/tori, and static files at /tori/.
Root / redirects to /tori/. Object storage mounted at /api/obj.
Dev proxy updated accordingly.
2026-03-04 11:46:52 +00:00

18 lines
385 B
TypeScript

import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
export default defineConfig({
base: process.env.VITE_BASE_PATH || '/tori/',
plugins: [vue()],
server: {
proxy: {
'/tori/api': 'http://localhost:3000',
'/api/obj': 'http://localhost:3000',
'/ws/tori': {
target: 'ws://localhost:3000',
ws: true,
},
},
},
})