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