Configure board deployment and backend proxy
Build, Push and Deploy / build (push) Failing after 1s
Build, Push and Deploy / deploy (push) Skipped

This commit is contained in:
2026-09-13 16:09:59 +08:00
commit 02f5bf14ba
91 changed files with 12401 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
import react from '@vitejs/plugin-react';
import { defineConfig } from 'vitest/config';
export default defineConfig({
plugins: [react()],
server: {
proxy: {
'/ws': {
target: 'ws://127.0.0.1:8787',
ws: true,
},
'/wordcloud-api': {
target: process.env.WORDCLOUD_API_UPSTREAM || 'http://192.168.31.213:8000',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/wordcloud-api/, ''),
},
},
},
test: {
include: ['src/**/*.{test,spec}.{ts,tsx}'],
environment: 'jsdom',
globals: true,
setupFiles: './src/test/setup.ts',
css: true,
},
});