diff --git a/frontend/nginx.conf b/frontend/nginx.conf index 7196b3c..d3eedef 100644 --- a/frontend/nginx.conf +++ b/frontend/nginx.conf @@ -8,6 +8,9 @@ server { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; client_max_body_size 20M; + proxy_read_timeout 300s; + proxy_connect_timeout 60s; + proxy_send_timeout 60s; } location / { diff --git a/frontend/src/utils/api.js b/frontend/src/utils/api.js index c52e032..9a1589e 100644 --- a/frontend/src/utils/api.js +++ b/frontend/src/utils/api.js @@ -496,7 +496,7 @@ export const api = { // Return a Promise that resolves with final result return new Promise((resolve, reject) => { - const url = `${BASE_URL}/prompts/execute-stream?${params}` + const url = `${BASE}/prompts/execute-stream?${params}` const eventSource = new EventSource(url)