release: 1.1.0
TallyNote release / linux-x64 (push) Successful in 6m24s

This commit is contained in:
Qiufeng
2026-08-31 20:11:34 +08:00
parent cbe0d65320
commit 12495fb6a4
66 changed files with 4315 additions and 77 deletions
+35
View File
@@ -0,0 +1,35 @@
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import path from 'node:path';
const apiPort = Number(process.env.TALLYNOTE_PORT ?? 3000);
export default defineConfig({
root: 'web-next',
plugins: [react()],
resolve: {
alias: { '@': path.resolve(process.cwd(), 'web-next/src') },
},
server: {
host: '127.0.0.1',
port: 5173,
proxy: {
'/api': {
target: `http://127.0.0.1:${apiPort}`,
// Preserve the browser Origin so Fastify can validate the configured
// public origin and its explicit development origins.
changeOrigin: false,
},
'/health': {
target: `http://127.0.0.1:${apiPort}`,
changeOrigin: false,
},
},
},
build: {
outDir: '../dist/web',
emptyOutDir: true,
cssCodeSplit: true,
sourcemap: false,
},
});