chore: sync local changes to Gitea

This commit is contained in:
shumengya
2026-06-24 22:10:28 +08:00
parent c5af0cc946
commit 7477986036
66 changed files with 8009 additions and 5631 deletions

24
frontend/vite.config.ts Normal file
View File

@@ -0,0 +1,24 @@
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
// https://vite.dev/config/
export default defineConfig(({ mode }) => {
const isDesktop = mode === 'desktop';
return {
plugins: [react()],
base: isDesktop ? './' : '/',
build: {
outDir: isDesktop ? 'dist-desktop' : 'dist',
emptyOutDir: true,
},
server: {
proxy: {
'/api': {
target: isDesktop ? 'https://nav.smyhub.com' : 'http://127.0.0.1:8787',
changeOrigin: true,
},
},
},
};
});