Repository Public
1import react from "@vitejs/plugin-react";2import { defineConfig } from "vite";34// No inline scripts or styles are emitted: the production CSP is script-src 'self'; style-src 'self' with Trusted Types.5export default defineConfig({6 root: "apps/web",7 plugins: [react()],8 build: { outDir: "../../dist/web", emptyOutDir: true, target: "es2022", modulePreload: { polyfill: false }, sourcemap: false, assetsInlineLimit: 0 },9 server: { port: Number(process.env.SPV_DEV_PORT ?? 5199), proxy: { "/api": `http://localhost:${process.env.PORT ?? 8740}`, "/.well-known": `http://localhost:${process.env.PORT ?? 8740}` } },10});11