What was built after 1.0.0; CHANGELOG.md has the detail, and deploy/cloudron/CHANGELOG.md the package's. - Fixed: the desktop studio app on Linux could not send anything with a body (its content security policy blocked Tauri's IPC), so invitations failed. Update the app. - Browser cameras reach the desk: a Chromium browser's AV1 camera is unpacked, sent at one picture size, survives packet loss, and has a jitter buffer of its own (300 ms). - The one-key DJ handover, a show's presenter and takedown contact, Icecast out and RTMP out (Rumble, Odysee, PeerTube, any RTMP server), video in the Cloudron package. - Two MP3 streams for the listener to choose from, the Opus rate as a setting, chat hours. - Avatars, pictures and documents in the chat, each approved by staff first. - Install wizards on the website and a setup page on the station with its own look. - A Night theme in the studio app. - Fixes from the public tracker: issues 2-7, 10, 13 and 14.
41 lines
2 KiB
TypeScript
41 lines
2 KiB
TypeScript
// SPDX-License-Identifier: AGPL-3.0-only
|
|
// SPDX-FileCopyrightText: 2026 The WeaveSignal contributors
|
|
import { defineConfig } from 'vitest/config';
|
|
import { svelte } from '@sveltejs/vite-plugin-svelte';
|
|
|
|
// Tauri serves the built files from dist/; in development it loads the dev server.
|
|
//
|
|
// For the interface in a browser on loopback (the M2 run, tests/m2/), the dev server passes
|
|
// /api to the control plane named by WEAVESIGNAL_CONTROL_URL and adds the admin bearer from
|
|
// WEAVESIGNAL_CONTROL_TOKEN itself, so the page never holds the token.
|
|
const env = (globalThis as { process?: { env: Record<string, string | undefined> } }).process?.env ?? {};
|
|
const control = env.WEAVESIGNAL_CONTROL_URL;
|
|
const bearer = env.WEAVESIGNAL_CONTROL_TOKEN;
|
|
// The chat service (M6), its own process: /api/v1/chat goes there, socket included, with the
|
|
// same bearer (the chat takes the station's admin bearer for the studio's routes).
|
|
const chat = env.WEAVESIGNAL_CHAT_URL;
|
|
const auth = bearer ? { Authorization: `Bearer ${bearer}` } : {};
|
|
|
|
// `--mode sandbox` builds the website's "Try the desk" (ADR-0212): the same app with the station
|
|
// simulated in the page (src/sandbox/), served at the root of demo.weavesignal.top, its sounds
|
|
// from /media/sandbox/ beside it (VITE_SANDBOX_MEDIA to change it).
|
|
export default defineConfig(({ mode }) => ({
|
|
plugins: [svelte()],
|
|
clearScreen: false,
|
|
server: {
|
|
port: Number(env.WEAVESIGNAL_STUDIO_PORT ?? 17420),
|
|
strictPort: true,
|
|
host: '127.0.0.1',
|
|
proxy: {
|
|
...(chat ? { '/api/v1/chat': { target: chat, ws: true, headers: auth } } : {}),
|
|
...(control ? { '/api': { target: control, headers: auth } } : {}),
|
|
},
|
|
},
|
|
build: {
|
|
target: 'es2022',
|
|
outDir: mode === 'sandbox' ? 'dist-sandbox' : 'dist',
|
|
// The chat's shipped avatars (packages/ui/avatars), kept as files beside the script.
|
|
assetsInlineLimit: (file: string) => (file.includes('/packages/ui/avatars/') ? false : undefined),
|
|
},
|
|
test: { environment: 'node', include: ['src/**/*.test.ts'] },
|
|
}));
|