5.2 - Or deploy Ncmaz to Vercel using Vercel CLI

1 - Requirements

2 - Getting started

  1. Create a Vercel Account:

    • First, you need to have a Vercel account. If you don't have one, you can sign up at Vercel's website.

  2. Install the Vercel CLI (Command Line Interface):

    • Open your terminal or command prompt and run the following command to install the Vercel CLI:

    npm install -g vercel
  3. Log in to the Vercel CLI:

    • Run the following command to log in to your Vercel account:

    vercel login

    You will be directed to a web page to log in to your Vercel account.

  4. Navigate to your Next.js Project Directory:

    • Open your terminal and navigate to the root directory of your Next.js project using the cd command.

  5. Deploy the Project:

    • Once you are in your project directory, run the following command to deploy your project to Vercel:

    vercel

    When you run this command for the first time, the Vercel CLI will ask you to name your project. You can use the default name or choose your own.

  6. Configure Deployment:

    • During the deployment process, Vercel CLI will ask you to configure some options such as the deployment environment (Development, Preview, or Production). You can choose the environment that fits your project.

  7. If you got this error "Routes Manifest Could Not Be Found", please: In the Vercel dashboard, open your "Project Settings" > "Environment Variables" > Add 2 environment variables "NEXT_PUBLIC_WORDPRESS_URL" and "FAUST_SECRET_KEY" to the project and then redeploy by running the "vercel" command again.

    # 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
    

  8. Wait for Deployment to Complete:

    • Vercel will automatically deploy your project. After the deployment process is complete, Vercel will provide a public URL to access your website.

  9. If you encounter errors during deployment, double-check the steps. Or take a photo of the error and email it to me for support

πŸ‘‰ Video Deploy Ncmaz to Vercel using Vercel CLI

Last updated

Was this helpful?