Skip to content

Fix bare-domain 404: register / -> login redirect in app factory - #91

Merged
Bentlybro merged 1 commit into
masterfrom
dev
Jul 6, 2026
Merged

Bentlybro merged 1 commit into
masterfrom
dev

Conversation

@Bentlybro

Copy link
Copy Markdown
Member

The / -> login redirect lived only in run.py (dev server), so gunicorn
wsgi:app never registered it and automod.agpt.co/ 404'd in prod (and
dev). Moves the route into create_app() so both entrypoints redirect the
bare domain to /auth/login. Verified locally: GET / now 302s to login.

The root route lived only in run.py (dev server), so gunicorn wsgi:app
never registered it and the bare domain 404'd in every deployment. Move
it into create_app so dev and prod both redirect / to the login page.
@Bentlybro
Bentlybro merged commit eb13bba into master Jul 6, 2026
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant