This commit is contained in:
Mackie 2026-06-07 23:34:10 +08:00
parent b70dca95f9
commit 398df2fba8
2 changed files with 3 additions and 4 deletions

View file

@ -3,7 +3,7 @@ server {
root /usr/share/nginx/html; root /usr/share/nginx/html;
index index.html; index index.html;
location / { location /lab/data-dashboard/ {
try_files $uri $uri/ /index.html; try_files $uri $uri/ /index.html;
} }

View file

@ -2,10 +2,9 @@ import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react'; import react from '@vitejs/plugin-react';
export default defineConfig({ export default defineConfig({
base: '/lab/data-dashboard/',
plugins: [react()], plugins: [react()],
worker: { worker: {
// This ensures your worker is bundled as an ES module,
// which is required for modern browsers and deployment.
format: 'es', format: 'es',
}, },
}); });