From e7b4ddbde93daee7b1b723ed837831477064f971 Mon Sep 17 00:00:00 2001 From: Song367 <601337784@qq.com> Date: Mon, 9 Mar 2026 17:38:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx.conf | 6 +----- vite.config.ts | 3 +-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/nginx.conf b/nginx.conf index 0118146..6f61d6c 100644 --- a/nginx.conf +++ b/nginx.conf @@ -17,11 +17,7 @@ http { server { listen 80; server_name localhost; - location = /scriptflow { - return 301 /scriptflow/; - } - location /scriptflow/ { - + location / { root /app; index index.html; try_files $uri $uri/ /index.html; diff --git a/vite.config.ts b/vite.config.ts index 980f1c4..1c24e77 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -6,7 +6,6 @@ import {defineConfig, loadEnv} from 'vite'; export default defineConfig(({mode}) => { const env = loadEnv(mode, '.', ''); return { - base: '/scriptflow/', plugins: [react(), tailwindcss()], define: { 'process.env.GEMINI_API_KEY': JSON.stringify(env.GEMINI_API_KEY), @@ -18,7 +17,7 @@ export default defineConfig(({mode}) => { }, server: { // HMR is disabled in AI Studio via DISABLE_HMR env var. - // Do not modify芒聙聰file watching is disabled to prevent flickering during agent edits. + // Do not modify鑺掕仚鑱癴ile watching is disabled to prevent flickering during agent edits. hmr: process.env.DISABLE_HMR !== 'true', }, };