Prerequisites
Blog routes are live at
{your-domain}{blogPath} (for example https://acme.com/blog).RANKBUDDY_API_KEY is set in your production environment (server-only, never NEXT_PUBLIC_).Your RankBuddy project uses the same website URL and blog path you configured during onboarding.
Steps
Create a RankBuddy account
Sign up at rankbuddy.io/auth/signup. The free trial includes full access to article generation and publishing.
Confirm project settings
In RankBuddy, open your project and verify:
- Website matches your live domain (e.g.
https://acme.com) - Content path matches your blog route (e.g.
/blog)
website + content path + slug → https://acme.com/blog/my-article.Generate your first article
- Open the AI writer or content planner.
- Pick a keyword cluster or enter a target keyword.
- Generate a draft, review and edit it in the editor.
- Set SEO fields (title, description, slug, cover image) before publishing.
Publish
Change status to Published (or schedule a time). RankBuddy stores the article in the API your blog already reads.Nothing goes live on your site until you explicitly publish — drafts never appear in
getArticlesList or getArticleBySlug.Verify on your site
- Open
{blogPath}— your new post should appear in the listing. - Open
{blogPath}/{slug}— full article, cover image, and metadata should render.
If you use on-demand caching (
revalidate = false), you may need to redeploy or call your revalidation endpoint once before the first publish appears. For the simplest first launch, use time-based revalidation (revalidate = 3600) as described in the blog setup guide.Keep publishing
Use the content planner to schedule posts, track clusters, and grow organic traffic from rankbuddy.io.
Get your API key
- In RankBuddy, open Settings → API keys (or your project’s integration settings).
- Create a key with access to read published articles.
- Add it to your hosting provider as
RANKBUDDY_API_KEY. - Redeploy if the variable was added after the last deploy.
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
| Empty blog index | Wrong API key or project not publishing | Check env var and publish status in RankBuddy |
| 404 on article URL | Slug mismatch or article still draft | Confirm slug in RankBuddy matches URL |
| Stale content after publish | Static cache not refreshed | Lower revalidate interval or add tag-based revalidation |
| Build fails locally | Missing API key at build time | Provide key in CI or guard generateStaticParams with try/catch |