Next.js

Ein SEO-Blog für Next.js ohne CMS

Wenn Ihre Site auf Next.js läuft, wollen Sie wahrscheinlich kein CMS anschrauben, nur um einen Blog zu haben. Bora stellt Ihre veröffentlichten Artikel als JSON-Feed mit privatem Schlüssel bereit; Sie holen ihn in einer Server-Komponente ab und stellen ihn so dar, wie Ihre Site ohnehin aussieht.

Was Sie brauchen

  • A Next.js app — App Router or Pages Router
  • One API key, which Bora generates for you
  • About fifteen minutes

Next.js verbinden

  1. 1Connect Bora and copy the generated snippet — it is a server component that fetches the feed.
  2. 2Drop it into app/blog/page.tsx and app/blog/[slug]/page.tsx.
  3. 3Set revalidate to whatever freshness you want; hourly is plenty for daily publishing.
  4. 4Deploy. New articles appear on their own from then on.
Was meistens schiefgeht

The feed is designed for ISR, not client fetching

The endpoints set cache headers meant to be consumed by a server component with revalidation, so your pages stay static and fast. Fetching from the browser would expose the key and cost you the static render — the snippet we generate does it on the server.

Was Bora auf Next.js macht

  • JSON feed with full article HTML — unterstützt
  • Per-article endpoint for detail pages — unterstützt
  • Markdown endpoint if you render your own — unterstützt
  • RSS and sitemap for the feed — unterstützt
  • Writing files into your repository — nicht unterstützt

Bora veröffentlicht auch auf

Ein sich selbst aktualisierender SEO-Blog für Ihre Next.js-Site · Bora