Next 13 Programmatic SEO template
The Next 13 Boilerplate for Programmatic SEO Campaigns is a template for creating modern programmatic SEO campaigns. It includes all the features that you would expect in a modern pSEO campaign. The boilerplate utilizes Next 13 for static fast webpage loading and deployment on Vercel. It also uses Incremental Static Regeneration (ISR) for regenerating information on Vercel during runtime. The template automatically generates sitemaps and robots.txt, even with ISR regeneration, using next-sitemap. It provides distinct layouts for site, blog, and variant pages. The boilerplate also includes SEO metadata, JSON-LD, Open Graph tags with Next SEO, and a built-in cookie banner and Google Analytics. It features developer experience first with Prisma for easy database interaction, type-checking with TypeScript, integration with Tailwind CSS, strict mode for TypeScript and React 18, code formatter with Prettier, absolute imports using @ prefix, and E2E testing with Playwright.
To get started with the Next 13 Boilerplate for Programmatic SEO Campaigns, follow these steps:
git clone git@github.com:agamm/pseo-next.git pseo-examplenpm idocker-compose up -d (for local PostgreSQL DB)http://localhost:3000/ to view the development environment.Development.env.example to .env and update the necessary parameters if needed./src/app/(site) folder./posts folder./src/app/blog folder./src/variant/[slug] folder. Example: yoursite.com/hotels/spain-summer-2023 with variant="hotels" and slug="spain-summer-2023"./prisma/schema.prisma and running npx prisma migrate dev --name init and npm run dbDeployment.npm run prod:build.The Next 13 Boilerplate for Programmatic SEO Campaigns is a powerful tool for creating modern programmatic SEO campaigns. It offers a wide range of features, including fast webpage loading, automatic sitemap and robots.txt generation, distinct layouts for different page types, SEO metadata optimization, and built-in analytics and cookie banner. The boilerplate prioritizes developer experience by providing easy integration with databases, type-checking with TypeScript, and a code formatter. Overall, it is a comprehensive solution for anyone looking to optimize their SEO strategies.