From 08c58c06d716b3ba4e023e3034b63ed4ab41316f Mon Sep 17 00:00:00 2001 From: Song367 <601337784@qq.com> Date: Mon, 9 Mar 2026 16:33:31 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .docker-tmp/buildx/.lock | 0 nginx.conf | 11 +++++------ vite.config.ts | 3 ++- 3 files changed, 7 insertions(+), 7 deletions(-) create mode 100644 .docker-tmp/buildx/.lock diff --git a/.docker-tmp/buildx/.lock b/.docker-tmp/buildx/.lock new file mode 100644 index 0000000..e69de29 diff --git a/nginx.conf b/nginx.conf index 211d566..4fc81ac 100644 --- a/nginx.conf +++ b/nginx.conf @@ -17,13 +17,12 @@ http { server { listen 80; server_name localhost; - location = /creation-flow-app { - return 301 https://$host/creation-flow-app/login; + location = /scriptflow { + return 301 /scriptflow/; } - location = /creation-flow-app/ { - return 301 https://$host/creation-flow-app/login; - } - location / { + location ^~ /scriptflow/ { + rewrite ^/scriptflow/(.*)$ /$1 break; + root /app; index index.html; try_files $uri $uri/ /index.html; diff --git a/vite.config.ts b/vite.config.ts index 0506f1b..980f1c4 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -6,6 +6,7 @@ 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), @@ -17,7 +18,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芒聙聰file watching is disabled to prevent flickering during agent edits. hmr: process.env.DISABLE_HMR !== 'true', }, };