Next.js

Un blog SEO pour Next.js sans CMS

Si votre site tourne sous Next.js, vous ne voulez probablement pas y greffer un CMS juste pour avoir un blog. Bora expose vos articles publiés dans un flux JSON protégé par une clé ; vous le récupérez dans un composant serveur et l'affichez avec le design que votre site a déjà.

Ce qu'il vous faut

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

Connecter Next.js

  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.
Ce qui coince en général

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.

Ce que Bora fait sur Next.js

  • JSON feed with full article HTML — pris en charge
  • Per-article endpoint for detail pages — pris en charge
  • Markdown endpoint if you render your own — pris en charge
  • RSS and sitemap for the feed — pris en charge
  • Writing files into your repository — non pris en charge

Bora publie aussi sur

Un blog SEO qui se met à jour tout seul pour votre site Next.js · Bora