From 9e8330c0cdb365c080841fb1355febe5a00be76d Mon Sep 17 00:00:00 2001 From: Mackie Date: Sun, 7 Jun 2026 23:40:07 +0800 Subject: [PATCH] strip --- nginx.conf | 7 +------ vite.config.ts | 3 ++- 2 files changed, 3 insertions(+), 7 deletions(-) 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',