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', }, };