This commit is contained in:
parent
0ea8beed09
commit
e7b4ddbde9
@ -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;
|
||||
|
||||
@ -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',
|
||||
},
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user