Adopt sister-site infrastructure baseline (Biome, Bun, Dependabot, dynamic sitemap/OG/RSS, CI)#47
Merged
lwwmanning merged 1 commit intomainfrom May 4, 2026
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Brings vortex.dev to parity with willmanning.com and spiraldb.com so all three repos share one infra mental model. Phase 1 — Tooling: - Bun-only: drop package-lock.json, pin packageManager + engines, add .nvmrc - Biome replaces ESLint+Prettier (drop eslint.config.mjs, .prettierrc) - Tighten tsconfig (noUnusedLocals/Parameters, alwaysStrict, etc.) - Switch from Renovate to Dependabot with grouping + 14-day cooldown - Add vercel.json Phase 2 — SEO/robustness: - Replace static sitemap.xml with dynamic sitemap.ts (was missing all 7 blog post URLs — search crawlers couldn't see them) - Add error.tsx global boundary - Dynamic OG image generation via next/og at /, /blog, /blog/[slug] - RSS feed (xml/json/atom) at /rss/[type] - JSON-LD Article schema + reading-time on blog posts - Move MDXRenderer to a server component so the velite-emitted code is evaluated on the server, not in the browser. This lets CSP drop 'unsafe-eval' entirely and removes that XSS surface area. - Harden security headers: HSTS, Referrer-Policy, Permissions-Policy, frame-ancestors, base-uri, form-action Phase 3 — Core CI: - ci.yml (SHA-pinned), claude.yml, dependabot-auto-merge.yml - scripts/verify.ts smoke suite (sitemap/robots/RSS/OG/JSON-LD/links) - Lighthouse + Playwright deferred to a follow-up Real bug fixed along the way: api/subscribe/route.ts instantiated the Resend client at module load, which crashed the build whenever RESEND_API_KEY was unset. Lazy-initialize inside the handler. Local verify suite: 15/15 checks passing. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> Signed-off-by: Will Manning <will@willmanning.io>
f04399b to
0483aba
Compare
This was referenced May 4, 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.
Summary
Massive overhaul of vortex.dev site infrastructure to improve developer experience and fix various shortcomings found along the way.
What changed
Phase 1 — Tooling foundation
Phase 2 — SEO/robustness parity
Phase 3 — Core CI
Real bug fixed along the way
`src/app/api/subscribe/route.ts` instantiated `new Resend(process.env.RESEND_API_KEY)` at module load. The build collects page data by importing each route, and the Resend SDK throws when the env var is missing — so the build crashed without an API key. Now lazy-initialized inside the handler with a 503 fallback.
Why
The user maintains three Next.js marketing sites and wants them on one shared infra baseline so PR reviews, dependency updates, CI debugging, and tooling upgrades only have to be reasoned about once. willmanning.com and spiraldb.com had already converged; vortex.dev was the lagger.
Things a reviewer should know
Out-of-band side find
`src/content/blog/september.mdx` and `src/content/blog/september-2025.mdx` both exist. Likely a stale draft — flagging here, not deleting in this PR.
Test plan
🤖 Generated with Claude Code