The easiest way to deploy a Next.js website to production is to use Vercel from the creators of Next.js. Vercel is an all-in-one platform with Global CDN supporting static & Jamstack deployment and Serverless Functions. With a Deploy to Vercel button right inside your Agility CMS Manager, you can get your Next.js and Agility CMS website deployed with a Preview Environment set up within minutes!
Deploy Via Deploy to Vercel button
Deploying your Next.js and Agility CMS site to Vercel is super easy with the Deploy to Vercel button integrated into your Agility CMS Manager.
Upon clicking the Deploy to Vercel button, you'll be prompted to enter the URL of a Git repository to deploy it. The provided URL is the repository for the Agility CMS + Next.js Starter.
Select your Vercel account, and proceed to Create a Git Repository to make sure you can easily update your project after deploying it. Every push to this Git repository will automatically be deployed to Vercel.
The final step before we can deploy our project is to provide Vercel with the Required Environment Variables your site needs so it can authenticate and retrieve data from your Agility CMS instance.
Need help finding your keys?Retrieving your API Key(s), Guid, and API URL
🎉 Congratulations! You've successfully deployed your Next.js and Agility CMS website to Vercel!