配置路由
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m48s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m48s
This commit is contained in:
parent
85aba6647b
commit
08c58c06d7
0
.docker-tmp/buildx/.lock
Normal file
0
.docker-tmp/buildx/.lock
Normal file
11
nginx.conf
11
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;
|
||||
|
||||
@ -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',
|
||||
},
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user