diff --git a/nginx.conf b/nginx.conf index 04f65d7..f5d0bc6 100644 --- a/nginx.conf +++ b/nginx.conf @@ -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; } diff --git a/vite.config.ts b/vite.config.ts index 1d85ce3..878ada6 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -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', - }, }); \ No newline at end of file