مدونة سيو لـ Next.js بلا نظام إدارة محتوى
إن كان موقعك على Next.js فالأرجح أنك لا تريد إضافة نظام إدارة محتوى لمجرد امتلاك مدونة. تتيح Bora مقالاتك المنشورة كتدفق JSON بمفتاح خاص؛ تجلبه في مكوّن خادم وتعرضه بالشكل الذي يبدو عليه موقعك أصلًا.
ما تحتاجه
- A Next.js app — App Router or Pages Router
- One API key, which Bora generates for you
- About fifteen minutes
كيفية ربط Next.js
- 1Connect Bora and copy the generated snippet — it is a server component that fetches the feed.
- 2Drop it into app/blog/page.tsx and app/blog/[slug]/page.tsx.
- 3Set revalidate to whatever freshness you want; hourly is plenty for daily publishing.
- 4Deploy. New articles appear on their own from then on.
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.
ماذا تفعل Bora على Next.js
- JSON feed with full article HTML — مدعوم
- Per-article endpoint for detail pages — مدعوم
- Markdown endpoint if you render your own — مدعوم
- RSS and sitemap for the feed — مدعوم
- Writing files into your repository — غير مدعوم