This commit is contained in:
Mackie 2026-06-08 07:46:11 +08:00
parent 4ae2e3563d
commit 48815fca01
2 changed files with 4 additions and 8 deletions

View file

@ -1,9 +1,9 @@
server {
listen 80;
root /usr/share/nginx/html;
index index.html;
location / {
# Use 'alias' to map the specific sub-path
location /lab/data-dashboard/ {
alias /usr/share/nginx/html/;
try_files $uri $uri/ /index.html;
}

View file

@ -2,10 +2,6 @@ import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
export default defineConfig({
// vite.config.ts
base: '/',
base: '/lab/data-dashboard/', // This tells Vite to prepend this to all paths
plugins: [react()],
worker: {
format: 'es',
},
});