import { defineConfig } from "vite"; import { svelte } from "@sveltejs/vite-plugin-svelte"; import tailwindcss from "@tailwindcss/vite"; export default defineConfig({ plugins: [svelte(), tailwindcss()], server: { // For dev: proxy API calls to the locally-running chat-server. // The deployed SPA (served by the same chat-server) doesn't need this. proxy: { "/v1": "http://localhost:6969", "/internal": "http://localhost:6969", "/.well-known": "http://localhost:6969", }, }, build: { outDir: "dist", emptyOutDir: true, }, });