nsfwapp/frontend/vite.config.ts
2026-01-29 11:47:18 +01:00

25 lines
539 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,
},
},
}
})