fix: enable canvas dev login
build-and-publish / test (push) Has been cancelled
build-and-publish / image (push) Has been cancelled

This commit is contained in:
Kua Agent
2026-06-16 10:24:27 +04:00
parent 99203267aa
commit 76ce4c23b2
4 changed files with 42 additions and 9 deletions
+9
View File
@@ -85,6 +85,15 @@ server {
proxy_buffering off;
}
# Dev/demo auth discovery. The SPA uses this to decide whether to show and
# enable the dev-login affordance. Keep this exact route ahead of the SPA
# fallback or nginx will return index.html and the client will disable it.
location = /internal/dev-login-config {
default_type application/json;
add_header Cache-Control "no-store" always;
return 200 '{"enabled":true,"email":"dev@flow-master.ai"}';
}
# SPA fallback to index.html for client-side routing.
location / {
try_files $uri $uri/ /index.html;