Commit Graph
1 Commits
Author SHA1 Message Date
shad b26ea1ee9c fix(login): devLoginConfig() returns null when endpoint absent, not false
build-and-publish / test (push) Has been cancelled
build-and-publish / image (push) Has been cancelled
The Vite minifier was tree-shaking the dev-login button because
devLoginConfig() always returned {enabled: false} when the
/internal/dev-login-config endpoint 404'd (which is the case on
canvas, where the endpoint isn't mounted).

That meant my prior 'default ON' fix never took effect — the useEffect
unconditionally flipped state to false within microseconds of mount.

Real fix: return {enabled: null} on absence. Only flip OFF when
endpoint explicitly says enabled=false. Otherwise honor the source
default.

Confidence: high
Scope-risk: narrow
2026-06-14 11:35:15 +04:00