Next.js

Um blog de SEO para Next.js sem CMS

Se o seu site é Next.js, provavelmente não quer acoplar um CMS só para ter um blog. A Bora expõe os artigos publicados como um feed JSON com chave privada; você o consome num componente de servidor e exibe com o visual que o seu site já tem.

O que você precisa

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

Como conectar o 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.
O que costuma dar errado

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.

O que a Bora faz no Next.js

  • JSON feed with full article HTML — compatível
  • Per-article endpoint for detail pages — compatível
  • Markdown endpoint if you render your own — compatível
  • RSS and sitemap for the feed — compatível
  • Writing files into your repository — não compatível

A Bora também publica em

Um blog de SEO que se atualiza sozinho no seu site Next.js · Bora