feat: add blog content and update preview logic#4946
Open
americano98 wants to merge 9 commits into
Open
Conversation
|
@americano98 is attempting to deploy a commit to the neondatabase Team on Vercel. A member of the Team first needs to authorize it. |
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
This PR moves published blog markdown into the website repository and makes
content/blogthe canonical source for production blog content. Normal blog pages now read markdown from the local filesystem instead of the external blog-content repo or CDN. Media assets remain on the CDN and are referenced by URL from markdown frontmatter/content.Full preview index/category snapshots load from the actual GitHub branch tree at the resolved commit. The loader reads the recursive Git tree, selects only
content/blogauthors/categories/posts, and fetches file text in parallel GraphQL blob batches. This avoids per-post REST Contents API fan-out, avoids GitHub compare file-list caps, and keeps preview content faithful to the selected branch even when it is behindmain. Preview routes also set a longer function duration for cold full-branch loads. Single-post preview remains scoped to the requested markdown file.The PR also adds a
Sync MainGitHub Actions workflow intended for the private mirror repository. The workflow can keep the mirrormainaligned with the public upstreammainwhile leaving author branches untouched.Notes
content/blog/posts,content/blog/authors, andcontent/blog/categoriesare now committed to this repo.Validation