Use the Next.js Blog integration when you want Alef articles to publish on your own site without exposing the API key in browser code.
AAlef ProductΒ·5 min read
01
Create the integration in Alef
Open Settings, go to Integrations, and select Next.js Blog. Create the integration, then copy the API key from the success dialog before closing it.
Save the key in your deployment environment as BLOG_API_KEY or the server-only name your blog client expects. Do not prefix it with NEXT_PUBLIC_ because that would ship the secret to the browser.
02
Install the blog client in your Next.js app
Copy the Alef blog client and blog routes into your App Router project, or adapt the same server-side pattern in your existing blog. The important boundary is that article requests run only in Server Components, route handlers, or server utilities.
Point the client at your Alef API root, pass the API key as a Bearer token, and render the returned article HTML only inside the server-rendered article page.
03
Publish the SEO routes
Expose a blog index, an article route such as /blog/[slug], and a sitemap entry for published articles. If your articles use remote featured images, allow those image hosts in next.config.js or use an image renderer that matches your setup.
Cache article lists and article pages so visitors get fast pages while Alef remains the source of published content. Redeploy or add on-demand revalidation if your team needs updates to appear immediately.
Use this checklist
Create a Next.js Blog integration from the Alef Integrations screen.
Store the generated key in a server-only environment variable.
Fetch articles from Server Components, route handlers, or server utilities only.
Add blog index, article, and sitemap routes to the public site.
Confirm article images are allowed by your Next.js image configuration.
The takeaway
The integration is safe when the key never reaches client-side JavaScript and every public article page is rendered from server-side reads.
Turn this article into a visibility plan
Use Alef to audit your site, find content gaps, and create briefs your team can ship.
Learn how to track search engine positions across Google, Bing, and AI answer engines. Build a multi-engine rank tracking baseline in 12 steps with Alef.
Compare agency rank tracking software pricing architectures β per-keyword, per-project, and unlimited flat plans β and see the real monthly cost at 10 and 25 clients.
Rank 7 position tracking report formats by the decision each one drives β visibility trend, share of answer, competitor displacement β so clients act, not archive.
Rank tracking accuracy breaks down for five measurable reasons. Learn why your tracker reports positions you cannot see and how to audit the gap before reporting.
Advanced rank tracking for agencies: score any tracker against 9 capabilities β multi-client workspaces, refresh frequency, AI-answer coverage, and cost at scale.
Learn how to calculate share of voice in AI search correctly: fix your prompt set, run repeated samples, weight by answer position, and trend it over time.
Learn how to benchmark AI visibility against 3-5 competitors: build a fixed prompt set, sample repeated runs, and score mentions and citations separately.
AI citation tracking that counts links alone misses most of the signal. Learn why unlinked brand mentions in ChatGPT and Perplexity still shape buyers.
AI answer engine trends 2026: citation concentration, engine-specific sourcing, prompt-level competition, and the metrics that turn AI visibility into pipeline.
Compare 6 AI content creation tools to trial on content quality, SEO tracking, AEO visibility, and brand consistency β and see which proves its output ranks.
Run a technical SEO audit in one day: crawl your site, check indexation, review metadata, test speed, and leave with a ranked fix queue. A 10-step process for B2B teams.
Learn how to fix indexation issues step by step: audit robots.txt, XML sitemaps, noindex tags, canonicals, and crawl budget to get product pages indexed and ranking.
A prioritized SEO site audit checklist of 15 issues ranked by impact β page speed, indexation, duplicate content, broken links, metadata, and structured data.
Page speed SEO explained: how Core Web Vitals, mobile-first indexing, and AI crawlers turn load time into rankings, conversions, and citations. Audit your site.
Run a website health audit in 2026: 12 checks across speed, mobile, indexation, metadata, and structured data, plus a readiness score to prioritize fixes.
A feature-by-feature AI SEO tools comparison for agencies: content generation, rank tracking, site audits, backlinks, AEO insights, and multi-client reporting.
The best AI SEO tools 2026 ranked on ROI: content output, rank tracking, audit coverage, backlink data, and AEO insights, plus a comparison table and how to choose.
A practical AI search engine optimization playbook for e-commerce and DTC brands: answer-first formatting, entity clarity, schema, and AI search visibility tracking.
Surfer SEO vs Alef compared on content optimization, rank tracking, site audit, and AI-answer visibility β plus when each tool fits an agency managing multiple clients.
Compare Google AI Overviews vs Perplexity on citations, reach, and content requirements. Get a decision framework for where to invest your AI visibility budget.
AI search vs traditional SEO: compare how each selects sources, reaches audiences, and measures presence β and get a decision framework for where to invest.
Learn how to build an AI-driven SEO strategy that wins Google rankings and AI citations in 2026 β keyword research, content, technical audits, and measurement.
Nine AI-driven SEO strategies that lift Google rankings and win AI citations β keyword clustering, content gaps, site audits, entity building, and more.
Compare rank tracking tools on what they miss: SERP features, mobile vs desktop splits, and AI-answer citations. See which tracker fits your 2026 stack.
Advanced rank tracking tips for agencies: geo and device segmentation, competitor benchmarking, and correlating rank changes with traffic and AI citations.
Stop tracking vanity positions. This SEO rank tracking guide explains average position, impression share, CTR by position, SERP features, and AI-answer citations β and what each metric should trigger.
Compare 7 best rank tracking tools on price, update frequency, and AI-answer tracking. Find the right rank tracker for your agency's multi-client needs.