The shell now follows the server's event stream over a WebSocket, falling back to polling the same log (every 30 s) while it reconnects with backoff, and reloading everything when the server says the cursor can't be replayed. Lists, the outbox, sidebar and rules refresh on their own events; the open conversation only reloads when its message count changes, so flag and tag changes don't collapse it. Mail the server marks as notifying shows an in-page notice while the tab is in view, and otherwise counts in the tab title and — if the reader opted in — raises an OS notification. The rule editor gains Don't notify and Notify anyway. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
15 lines
505 B
TypeScript
15 lines
505 B
TypeScript
import { defineConfig } from 'vite';
|
|
import { svelte } from '@sveltejs/vite-plugin-svelte';
|
|
|
|
export default defineConfig({
|
|
plugins: [svelte()],
|
|
server: {
|
|
proxy: {
|
|
// Defaults to tern-server's dev bind address (see server/.env.example).
|
|
// Override with TERN_API when the server runs on another port or host.
|
|
// ws: the live-update socket at /api/ws goes through the same proxy.
|
|
'/api': { target: process.env.TERN_API ?? 'http://127.0.0.1:8080', ws: true },
|
|
},
|
|
},
|
|
});
|