5.1 - Deploy Ncmaz to Vercel via a GitHub repo.
1 - Requirements
Already have a Vercel account on any plan.
You need to have the environment variables ready and correct - Step 4. Update environment variables.
# Your WordPress site URL NEXT_PUBLIC_WORDPRESS_URL=https://faustexample.wpengine.com # Plugin secret found in WordPress Settings->Faust FAUST_SECRET_KEY=YOUR_PLUGIN_SECRET
Read about how to manage environment variables in projects on Vercel - https://vercel.com/docs/projects/environment-variables
2 - Getting started
👉 Video deploy Ncmaz Faust to Vercel via GitHub repo
The prerequisite is that you need a GitHub account - https://github.com
Please create a new project on your GitHub account.
e.g. ncmaz-faust-blog
If you need help setting up your repo, take a look at this guide on GitHub.
As per Github's instructions, connect this new project to your
ncmaz-faust
folder, then use the GitHub cli commands to push all the files to the repo.Once your GitHub repository is ready. Click the New Project button from the Vercel dashboard.
In the "Import Git Repository" section, select the repo you just created (
e.g.ncmaz-faust-blog
), then click the import button.Next, go to the "Configure Project" section, click on the "Environment Variables" tab, then enter the 2 necessary environment variables of the project as - Step 4. Update environment variables.
# Your WordPress site URL NEXT_PUBLIC_WORDPRESS_URL=https://faustexample.wpengine.com # Plugin secret found in WordPress Settings->Faust FAUST_SECRET_KEY=YOUR_PLUGIN_SECRET
Then click the "Deploy" button and wait for the successful result.
When it’s done, you’ll get deployment URLs. Click on one of the URLs and you should see the Next.js starter page live.
Congratulations! You just deployed your Next.js app to production.
If you encounter errors during deployment, double-check the steps. Or take a photo of the error and email it to me for support
Last updated
Was this helpful?