测试
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 53s

This commit is contained in:
Song367 2026-03-09 17:38:46 +08:00
parent 0ea8beed09
commit e7b4ddbde9
2 changed files with 2 additions and 7 deletions

View File

@ -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;

View File

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