This commit is contained in:
Mackie 2026-06-07 23:40:07 +08:00
parent 2422e134a5
commit 9e8330c0cd
2 changed files with 3 additions and 7 deletions

View file

@ -3,12 +3,7 @@ server {
root /usr/share/nginx/html;
index index.html;
location = /lab/data-dashboard {
return 301 /lab/data-dashboard/;
}
location /lab/data-dashboard/ {
rewrite ^/lab/data-dashboard/(.*)$ /$1 break;
location / {
try_files $uri $uri/ /index.html;
}

View file

@ -2,7 +2,8 @@ import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
export default defineConfig({
base: '/lab/data-dashboard/',
b// vite.config.ts
base: '/',
plugins: [react()],
worker: {
format: 'es',