Step 4. Update environment variables.
Setup environment variables:
Once the necessary plugins have been properly installed and activated, open the .env.local.sample file on the Ncmaz-faust project -> duplicate it, and rename it to .env.local
It will look something like this:
# 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
# Your frontend NextJS site URL.
NEXT_PUBLIC_URL=http://localhost:3000
# Enable or disable the RTL mode
NEXT_PUBLIC_SITE_DIRECTION="ltr"Update the NEXT_PUBLIC_WORDPRESS_URL value with your WordPress site URL (be sure to include http:// or https://).
Additionally, update the FAUST_SECRET_KEY value with the Secret Key found in Settings → Faust in your WordPress admin area to support previews.

PreviousStep 3. Check Your Permalinks and WPGraphQL SettingsNextStep 5. Deploying the Ncmaz-Faust to Vercel
Last updated
Was this helpful?