oweme/apps/web/vite.config.ts
agent 8fbbb4933e Add Svelte web client and service worker
Mobile-first PWA: groups via key-in-fragment links, encrypted outbox and
sync over SSE, all split modes, currencies with ECB rate prefill, photos,
comments, history and rewind, stats, recurring expenses, CSV and backup,
EN/CS, dark/light theme, Web Push decrypted in the service worker.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013FYo6JSV1fDU1fm3LU77iF
2026-10-09 19:59:16 +00:00

15 lines
481 B
TypeScript

import { svelte } from '@sveltejs/vite-plugin-svelte';
import { defineConfig } from 'vite';
// Dev: the client on 127.0.0.1:8480, proxying /api to the server on 8481.
// Preview from your machine with: ssh -p 14922 -L 8480:localhost:8480 <dev box>
export default defineConfig({
plugins: [svelte()],
server: {
host: '127.0.0.1',
port: 8480,
strictPort: true,
proxy: { '/api': 'http://127.0.0.1:8481' },
},
build: { target: 'es2022', sourcemap: false },
});