10 lines
381 B
TypeScript
10 lines
381 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
import path from 'node:path'
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
resolve: { alias: { '@': path.resolve(__dirname, './frontend') } },
|
|
server: { port: 5188, strictPort: true, proxy: { '/web': 'http://127.0.0.1:8118', '/ltx': 'http://127.0.0.1:8118' } },
|
|
build: { outDir: 'dist' },
|
|
})
|