Getting Started

Create and publish SEO optimized articles within minutes 🚀

Installation

Install our package into your existing project using your package manager of choice. The sdk is fully open source and available on Github
1npm install nxtblog-ai --save

Setup

Initialize nxtblog.ai in your project using the following command.Replace <your-project-key> with your unique project key.This will create the following things in your project:
  • 📄 A SSG enabled page showing all published articles
  • 📄 A SSG enabled route making each of your blog posts available
  • 📄 A secured webhook api endpoint that incrementally rerenders a page when you make changes in the dashboard (ISR)
  • 📄 Automatic sitemap generation for all your blog articles
1npx nxtblog-ai init --project-key <your-project-key>

Project Key

Create a new project in the dashboard and use the generated project key to initialize nxtblog.ai in your project.
Create a new project

Production

When running in production, make sure to set the following environment variables.
1NXTBLOG_CDN_URL=https://nxtblog.ai/api/cdn/v1
2NXTBLOG_PROJECT_KEY=<your-project-key>