Wiselin Jaya Jos Kanagamani
HomeBlogAbout MeProductsContact
Optimizely

Getting Started with Optimizely SaaS using Next.js Starter App - Deployment to Vercel

October 14, 2024
2 min read
Getting Started with Optimizely SaaS using Next.js Starter App - Deployment to Vercel

In this getting Started with Optimizely proof-of-concept (POC) blog series, I will walk you through the steps to get started with Optimizely SaaS using a Next.js starter app and deploy it to Vercel. This guide assumes you have access to the SaaS version of Optimizely CMS, a Vercel account, and a GitHub account.

Prerequisites

  1. Access to Optimizely SaaS Beta | Sign up for Optimizely SaaS Beta🡕
  2. Vercel Hobby Account | Sign up for Vercel Hobby Account🡕
  3. GitHub account | Sign up for GitHub🡕

Step 1: Import Sample Data in Optimizely SaaS

  1. Log in to Optimizely SaaS: Use your Opti ID to log in to the Optimizely CMS.
  2. Import Sample Data:
  • Downlaod the sample “Mosey Bank” data and import it.
  • Navigate to Settings > Import Data > Choose File.
  • Choose Root path under content tree.
  • Click Begin Import.

opti clsnl3

Step 2: Generate a Graph Token

  • Go to Settings > API Clients.
  • Create a new API client and generate the key/secret.
  • Note down the generated key and secret for later use.

opti 2 s97n0m

Step 3: Clone the Repository and Deploy to Vercel

  • Go to the GitHub repository🡕.
  • Click the “Deploy” button in the readme section to deploy this site to your Vercel Account.
  • Create repository

opti 3 gkiqvy

  • Configure the Environmnet variables & click deploy

opti 4 ludmxq

Environment Variable

  • OPTIMIZELY_CMS_URL : The URL where the Optimizely CMS can be reached by the build process; for example: https://example.cms.optimizely.com/
  • OPTIMIZELY_GRAPH_SECRET : The Content Graph Secret can be made visible on the CMS Dashboard, within the “Render Content” section.
  • OPTIMIZELY_GRAPH_APP_KEY : The Content Graph App key, which is shown on the CMS Dashboard, within the “Render Content” section.
  • OPTIMIZELY_GRAPH_SINGLE_KEY : The Content Graph Single key, which is shown on the CMS Dashboard, within the “Render Content” section.
  • SITE_DOMAIN : Vercel app URL(to be added later after deployment to configure visual editor)

opti 5 grtnfe

Once the deployment is successful, your sample starter Mosey Bank website should be up & running, rendering data from Opti SaaS.

opt7 dpbtro

Step 4: Configure the visual editor in CMS

  • Copy the Vercel hosted public URL.
  • Go to Settings > Application in Optimizely CMS.
  • Create a new Create Website Application and give it a name.
  • Choose Start page as Mosey Bank root
  • Click Create Website.
  • Select created Application & go to hostnames
  • Click hostname. Add the copied Vercel URL as hostname & select en as locale.

ezgif-1-46dd7f12c2 bu8ngf

Step 5: Verify the Deployment 🎉

  • Navigate to the CMS edit section in Optimizely.
  • Verify that the visual editor is running & displaying the imported sample data.

opt 6 ezp9is

Conclusion

By following these steps, you have successfully set up an Optimizely SaaS environment, imported sample data, and deployed a Next.js starter app to Vercel. You can now explore and customize the application further to suit your needs. In the next part, we will explore how to configure local environgment, make content edits, extend a component to test the IRS & feature deployments in vercel.

References

Special thanks to Remko and Patrick for their valuable contributions & documentation.


Tags

OptimizelyCMSVercelPocNext.js

Share

Let's build something great together

Have a project in mind, or just want to talk Optimizely, .NET or AI? I'd love to hear from you.
Let's Connect
Wiselin Jaya Jos Kanagamani
DXP Solution Architect specialized in Optimizely, helping businesses design and scale modern digital experiences.

Quick Links

BlogAbout MeLet's ConnectRSS Feed

Social Media

© 2026 Wiselin Jaya Jos Kanagamani. All Rights Reserved.