Skip to content

fix(cli): scaffold a Landing page at / so fresh apps don't 404 - #141

Merged
antosubash merged 1 commit into
mainfrom
feature/feat-fresh-scaffold-quickstart-landing-page-gpjxx
May 12, 2026
Merged

fix(cli): scaffold a Landing page at / so fresh apps don't 404#141
antosubash merged 1 commit into
mainfrom
feature/feat-fresh-scaffold-quickstart-landing-page-gpjxx

Conversation

@antosubash

@antosubash antosubash commented May 12, 2026

Copy link
Copy Markdown
Owner

Summary

  • A fresh smpy new app 404'd at / because the host template registered no root route, despite the Quickstart explicitly directing users there.
  • Adds a host-owned / route (in template routes.py, decoupled from the dashboard module) plus a minimal Tailwind Landing.tsx that flips its primary CTA between /dashboard and /users/login based on auth state.
  • Pins the behaviour with test_sm_new_registers_landing_route_at_root so the 404 can't sneak back in.

Closes #137

Test plan

  • uv run pytest framework/cli/tests/ -q — 106 passed including the new regression test
  • smpy new demo --yes against the built wheel, then make dev and curl -i http://localhost:8000/ → expect 200

The Quickstart promises `http://localhost:8000` is a landing page, but
the CLI host template registered no `/` route — every fresh `smpy new`
app 404'd on first visit. Add a host-owned `/` route (decoupled from the
`dashboard` module) plus a minimal Tailwind Landing page to the template,
and pin the behaviour with a regression test.

Closes #137
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying simple-module-python with  Cloudflare Pages  Cloudflare Pages

Latest commit: 6a63493
Status: ✅  Deploy successful!
Preview URL: https://3b73cfba.simple-module-python.pages.dev
Branch Preview URL: https://feature-feat-fresh-scaffold.simple-module-python.pages.dev

View logs

@antosubash
antosubash merged commit 6c0a620 into main May 12, 2026
12 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.

Fresh scaffold returns 404 at / — Quickstart promises a landing page

1 participant