Draft
feat: @ottabase/error-page — edge-compatible error rendering with dev/prod modes#119
Conversation
…s (inspired by poppinss/youch) Co-authored-by: thinkdj <688055+thinkdj@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Replicate youch error handling for monorepo and tanstack app
Add @ottabase/youch — edge-compatible pretty error pages
Feb 25, 2026
…rences, add enhancements Co-authored-by: thinkdj <688055+thinkdj@users.noreply.github.com>
Copilot
AI
changed the title
Add @ottabase/youch — edge-compatible pretty error pages
Add @ottabase/error-page — edge-compatible pretty error renderer
Feb 25, 2026
- Add renderProductionHTML() for clean production error pages - Add toProductionHTML() method to ErrorPage class - Update cloudflare-worker.ts: dev=detailed HTML, prod=minimal HTML, API=JSON - Add 12 new tests for production error page (53 total) - Update README with production mode docs and integration example Co-authored-by: thinkdj <688055+thinkdj@users.noreply.github.com>
Copilot
AI
changed the title
Add @ottabase/error-page — edge-compatible pretty error renderer
feat: @ottabase/error-page — edge-compatible error rendering with dev/prod modes
Feb 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces the
youchnaming with a generic@ottabase/error-pagepackage. Adds production-safe error pages and integrates as the default worker error handler.Package:
@ottabase/error-pageErrorPage.toHTML()— detailed dev error page (stack trace, request metadata, error cause chain, "open in editor" links)ErrorPage.toProductionHTML()— minimal production page (status code + generic message, no internals)Worker integration
Production error page
Cleanup
Zero
youchreferences in source code. Remaining occurrences inpnpm-lock.yamlare transitive deps fromwrangler/miniflare.✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.