Repository navigation
fix(deploy): serve prerendered pages from static assets on Cloudflare - #57
Merged
Merged
Conversation
docora reads content/ from disk while rendering, which fails on Workers with "no such file or directory, readdir '/bundle/content'". Use the static assets incremental cache so prerendered pages are served from Workers assets instead of being re-rendered per request. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Summary
docora reads
content/from disk while rendering. A Worker has no disk, so every page on https://tween-ui-docs.mr-moshiur314.workers.dev returned 500 withno such file or directory, readdir '/bundle/content'.This switches OpenNext to the static assets incremental cache with cache interception, so the pages prerendered at build time are served straight from Workers assets.
Testing
Checked on the Cloudflare preview for this branch:
/,/component/sliding-tabs,/llms.txt,/api/searchcontent/for navigation), and/ogexceeds the Free plan's CPU limit (error 1102)./mcpalso needs disk access but is paused.🤖 Generated with Claude Code