配置路由
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 {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name localhost;
|
server_name localhost;
|
||||||
location = /creation-flow-app {
|
location = /scriptflow {
|
||||||
return 301 https://$host/creation-flow-app/login;
|
return 301 /scriptflow/;
|
||||||
}
|
}
|
||||||
location = /creation-flow-app/ {
|
location ^~ /scriptflow/ {
|
||||||
return 301 https://$host/creation-flow-app/login;
|
rewrite ^/scriptflow/(.*)$ /$1 break;
|
||||||
}
|
|
||||||
location / {
|
|
||||||
root /app;
|
root /app;
|
||||||
index index.html;
|
index index.html;
|
||||||
try_files $uri $uri/ /index.html;
|
try_files $uri $uri/ /index.html;
|
||||||
|
|||||||
@ -6,6 +6,7 @@ import {defineConfig, loadEnv} from 'vite';
|
|||||||
export default defineConfig(({mode}) => {
|
export default defineConfig(({mode}) => {
|
||||||
const env = loadEnv(mode, '.', '');
|
const env = loadEnv(mode, '.', '');
|
||||||
return {
|
return {
|
||||||
|
base: '/scriptflow/',
|
||||||
plugins: [react(), tailwindcss()],
|
plugins: [react(), tailwindcss()],
|
||||||
define: {
|
define: {
|
||||||
'process.env.GEMINI_API_KEY': JSON.stringify(env.GEMINI_API_KEY),
|
'process.env.GEMINI_API_KEY': JSON.stringify(env.GEMINI_API_KEY),
|
||||||
@ -17,7 +18,7 @@ export default defineConfig(({mode}) => {
|
|||||||
},
|
},
|
||||||
server: {
|
server: {
|
||||||
// HMR is disabled in AI Studio via DISABLE_HMR env var.
|
// 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',
|
hmr: process.env.DISABLE_HMR !== 'true',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user