ci / check (push) Successful in 23m54s
- UI: settings tab with sections (server, API keys, Prometheus, audit, migrate, about); server settings moved there; master keys table rework (menu, chips, version, compact phone cards); three-state node version chip - I1: random per-server template (DNS / QUIC Initial / STUN) kept in users.db, GET/POST /api/masking, change from the master keys banner - Hub rejects nodes older than 0.5.0 (close 4026), /ui/nodes reports outdated - install.sh: spinner for long commands (full output in the log), step progress bar, cards; installs older than 0.5.0 require a full reinstall with data reset - Bump to Beta 0.5.0
25 lines
898 B
TypeScript
25 lines
898 B
TypeScript
// Copyright (c) 2026 Ivan Vasilev
|
|
// This source code is licensed under the MIT license found in the
|
|
// LICENSE file in the root directory of this source tree.
|
|
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
|
|
const api = `http://localhost:${process.env.MOCK_PORT || 8080}`;
|
|
|
|
export default defineConfig({
|
|
// Ресурсы — от адреса страницы, а не от корня домена: собранная панель работает и в корне, и в
|
|
// подпапке за reverse-proxy (example.com/forgetting/) без пересборки. Запросы к API — так же
|
|
// (main.tsx).
|
|
base: './',
|
|
plugins: [react()],
|
|
server: {
|
|
proxy: {
|
|
'/api': api,
|
|
'/ui': api,
|
|
'/health': api,
|
|
'/login': api,
|
|
'/logout': api,
|
|
},
|
|
},
|
|
});
|