nsfwapp/frontend/vite.config.ts
2026-03-03 21:14:39 +01:00

26 lines
556 B
TypeScript

// frontend\vite.config.ts
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import path from 'path'
import tailwindcss from '@tailwindcss/vite'
export default defineConfig({
plugins: [react(), tailwindcss()],
build: {
outDir: path.resolve(__dirname, '../backend/web/dist'),
emptyOutDir: true,
},
server: {
host: true, // oder '0.0.0.0'
proxy: {
"/api": {
target: "http://localhost:9999",
changeOrigin: true,
secure: false,
ws: true
},
},
}
})