Files
live-hub-py/web/frontend/vite.config.ts
T

21 lines
442 B
TypeScript

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
const backendTarget = process.env.VITE_BACKEND_TARGET || 'http://127.0.0.1:8000'
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
server: {
port: 5173,
allowedHosts: ["www.u499731.nyat.app"],
proxy: {
'/api': {
target: backendTarget,
changeOrigin: true,
ws: true,
},
},
},
})