feat(www): SonicJS Authentication blog post + scheduled publishing#810
Merged
Conversation
- New guide post: SonicJS Authentication: A Complete Guide (covers password, OAuth, magic link, and OTP flows with JWT + KV-cached verification, RBAC middleware, and a hardening checklist). - Hero image generated to www/public/images/blog/sonicjs-authentication-complete-guide/hero.png. - blog.ts now hides future-dated posts in production so authors can set publishedAt to a future date and the post stays out of listings, RSS, sitemap, and direct URLs until the next deploy on/after the date. - sonicjs-seo-blog skill updated to always run hero-image generation after writing the MDX (with explicit failure reporting) and to use the actual content path (www/content/blog/[category]/). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
422bb89 to
35c1f44
Compare
4 tasks
lane711
added a commit
that referenced
this pull request
Apr 30, 2026
Adds 10 new SEO-optimized blog posts on a Mon/Wed cadence using the future-dated publishedAt scheduling added in #810. Each post is 1,500-2,500+ prose words with a TLDRBox, real SonicJS code examples, internal doc links, and a DALL-E hero image: - 2026-05-04 tutorials/building-rest-api-with-sonicjs - 2026-05-06 tutorials/deploy-sonicjs-to-cloudflare-workers - 2026-05-11 tutorials/creating-custom-collections-in-sonicjs - 2026-05-13 tutorials/sonicjs-file-uploads-with-r2 - 2026-05-18 guides/using-sonicjs-with-nextjs - 2026-05-20 guides/sonicjs-plugins-extending-your-cms - 2026-05-25 comparisons/sonicjs-vs-wordpress - 2026-05-27 comparisons/sonicjs-vs-ghost - 2026-06-01 deep-dives/sonicjs-d1-database-deep-dive - 2026-06-03 deep-dives/sonicjs-plugin-architecture-deep-dive Posts stay hidden in production (listings, RSS, sitemap, direct URLs) until each publishedAt date passes and the next deploy runs. Co-authored-by: Claude Opus 4.7 <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
www/content/blog/guides/sonicjs-authentication-complete-guide.mdx(~2,300 words) covering password, OAuth, magic link, and OTP flows with JWT + KV-cached verification, RBAC middleware, refresh tokens, and a production hardening checklist. Hero image generated via DALL-E 3.www/src/lib/blog.tsnow hides posts with a futurepublishedAtin production (mirrors the existingdraftflag). Affects listings, RSS, sitemap, related posts, category/tag pages, and direct URLs (getPostreturns null → 404,generateStaticParamsskips the slug). Note: the site isforce-static, so future posts surface on the next deploy on/after the publish date..claude/commands/sonicjs-seo-blog.mdnow always runs hero-image generation after writing MDX (with explicit failure reporting if the OpenAI key is bad) and points at the real content path (www/content/blog/[category]/).Test plan
wwwand confirm/blog/sonicjs-authentication-complete-guiderenders with the hero image/blog, the relevant category page, the RSS feed, and the sitemappublishedAtto a future date locally and confirm the post is hidden innext buildoutput but visible innext dev/authentication,/security,/plugins/oauth), and code examples render correctly🤖 Generated with Claude Code