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.

NOTE for users of Atlas and/or Local: If deploying from the Atlas portal using your own repository without beginning with a blueprint, you will need to set your environment variables manually. Learn how by taking a look at our FAQs. If using Local, ensure that in Localโ€™s advanced settings, your router mode is set to Site Domains to match your NEXT_PUBLIC_WORDPRESS_URL value.

Last updated

Was this helpful?