f5b84f1ad7
Document Grok Bot computer UAT in deploy/INVENTORY.md. Vite preview proxies /api → FastAPI :18182. Ignore .uat-data/ and .venv-overnight/. Never bind :10880.
16 lines
538 B
TypeScript
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 } },
|
|
},
|
|
});
|