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