Skip to content

feat: add routes list to demo pages #68

Merged
olliethedev merged 7 commits intomainfrom
feat/demo-improvements
Mar 7, 2026
Merged

feat: add routes list to demo pages #68
olliethedev merged 7 commits intomainfrom
feat/demo-improvements

Conversation

@olliethedev
Copy link
Collaborator

@olliethedev olliethedev commented Mar 6, 2026

Note

Medium Risk
Touches @btst/stack packaging by changing how plugin CSS is rewritten during postbuild, which can affect published artifacts/consumer styling. Demo changes are mostly additive UI/config updates with low runtime risk.

Overview
Demo apps now have a real home page: demos/*/app/page.tsx is replaced with a route index UI that discovers plugin routes via generateSchema() and (where applicable) expands seeded resources (posts, boards, forms, CMS types/items) into direct links.

Demo configuration/build tweaks: removes root redirects from demo next.config.ts, drops Next’s generated route type import from next-env.d.ts, switches demo tsconfig.json jsx to preserve, bumps demo @btst/stack dependency to 2.5.3, and updates copy-stack-src.mjs to optionally overlay monorepo-built dist/plugins onto the npm install for correct CSS.

Stack packaging fixes: bumps @btst/stack to 2.5.3, changes scripts/postbuild.cjs to inline @workspace/ui CSS directly into each dist/plugins/**.css file (instead of generating shared/ files), and fixes route-docs schema generation to handle Zod defaults where _def.defaultValue may be a value or a function.

Also updates biome.json to ignore the generated .btst-stack-* directories.

Written by Cursor Bugbot for commit b22f972. This will update automatically on new commits. Configure here.

…configuration files for improved compatibility
@vercel
Copy link

vercel bot commented Mar 6, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
better-stack-docs Ready Ready Preview, Comment Mar 7, 2026 5:14pm

Request Review

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

@olliethedev olliethedev merged commit d7578ea into main Mar 7, 2026
5 checks passed
@olliethedev olliethedev deleted the feat/demo-improvements branch March 7, 2026 17:25
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