diff --git a/nginx.conf b/nginx.conf index 5530888..bd197d0 100644 --- a/nginx.conf +++ b/nginx.conf @@ -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; } diff --git a/vite.config.ts b/vite.config.ts index 8c9dda1..c3189da 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -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',