Files
SlabUploader/frontend/vite.config.ts
T
grokbot_ty f5b84f1ad7 chore(deploy): overnight box UAT on :18181 / API :18182
Document Grok Bot computer UAT in deploy/INVENTORY.md.
Vite preview proxies /api → FastAPI :18182. Ignore .uat-data/ and
.venv-overnight/. Never bind :10880.
2026-09-25 17:50:14 -07:00

16 lines
538 B
TypeScript

import { defineConfig } from 'vite';
import { svelte } from '@sveltejs/vite-plugin-svelte';
import sveltePreprocess from 'svelte-preprocess';
export default defineConfig({
plugins: [svelte({ preprocess: sveltePreprocess() })],
worker: { format: 'es' },
// overnight-whole-app box UAT: vite preview on :18181 → FastAPI on :18182
server: {
proxy: { '/api': { target: 'http://127.0.0.1:18182', changeOrigin: true } },
},
preview: {
proxy: { '/api': { target: 'http://127.0.0.1:18182', changeOrigin: true } },
},
});