From 398df2fba81b3f6c636b68022dd795ad57966176 Mon Sep 17 00:00:00 2001 From: Mackie Date: Sun, 7 Jun 2026 23:34:10 +0800 Subject: [PATCH] lab --- nginx.conf | 2 +- vite.config.ts | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/nginx.conf b/nginx.conf index bd197d0..3aeaf13 100644 --- a/nginx.conf +++ b/nginx.conf @@ -3,7 +3,7 @@ server { root /usr/share/nginx/html; index index.html; - location / { + location /lab/data-dashboard/ { try_files $uri $uri/ /index.html; } diff --git a/vite.config.ts b/vite.config.ts index 4674fa4..8c9dda1 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -2,10 +2,9 @@ import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; export default defineConfig({ + base: '/lab/data-dashboard/', plugins: [react()], worker: { - // This ensures your worker is bundled as an ES module, - // which is required for modern browsers and deployment. - format: 'es', + format: 'es', }, }); \ No newline at end of file