Enviroment variables

# Your WordPress site URL. 
NEXT_PUBLIC_WORDPRESS_URL=http://localhost/wordpress

# Plugin secret found in WordPress Settings->Headless faust
FAUST_SECRET_KEY=936e8625-9d03-47c0-84e6-9bc4a8ba5eda

# Your frontend NextJS site URL
NEXT_PUBLIC_URL=http://localhost:3000

# Enable or disable the RTL mode
NEXT_PUBLIC_SITE_DIRECTION="ltr"

# Enable or disable the GEAR setting icon 234
NEXT_PUBLIC_SITE_GEAR_ICON=true

# Enable or disable the GET method for the API calls: GET or POST
NEXT_PUBLIC_SITE_API_METHOD=GET

# Image remote URLs
NEXT_PUBLIC_IMAGE_REMOTE_HOSTNAME_1=i0.wp.com
NEXT_PUBLIC_IMAGE_REMOTE_HOSTNAME_2=i0.wp.com
  1. NEXT_PUBLIC_WORDPRESS_URL & FAUST_SECRET_KEY Here are two essential environment variables for Faustjs projects

  2. NEXT_PUBLIC_URL

  3. NEXT_PUBLIC_SITE_DIRECTION This environment variable caters to the RTL or LTR feature.

  4. NEXT_PUBLIC_SITE_GEAR_ICON To hide or show the GEAR icon control

  5. NEXT_PUBLIC_SITE_API_METHOD GET or POST. By default, it's POST, but use GET when encountering 'query too long' errors.

  6. NEXT_PUBLIC_IMAGE_REMOTE_HOSTNAME_1, NEXT_PUBLIC_IMAGE_REMOTE_HOSTNAME_2 In case users want to use images from various remote sources, they can quickly list them here without needing to configure them in the next.config file.

Last updated