this repo has no description
1import { defineConfig, loadEnv } from "vite"; 2import { svelte } from "@sveltejs/vite-plugin-svelte"; 3 4export default defineConfig(({ mode }) => { 5 const env = loadEnv(mode, process.cwd(), ""); 6 const target = env.VITE_API_URL || "http://localhost:3000"; 7 8 return { 9 plugins: [svelte()], 10 build: { 11 outDir: "dist", 12 }, 13 server: { 14 port: 5173, 15 proxy: { 16 "/xrpc": target, 17 "/oauth": target, 18 "/.well-known": target, 19 "/health": target, 20 "/u": target, 21 }, 22 }, 23 }; 24});