Configuration
Create a .env file in the project root. The values below are the README examples; replace them with your own:
DOMAIN=wp-next.stechbd.net
SITE=https://wp-next.stechbd.net
API=https://exampleapi.com/wp-json/wp/v2
GA=True
GA_TRACKING_ID=G-XXXXXXXXXX
IMAGE_DOMAINS=example.com,example.net,gravatar.com
ROBOTS_ALLOW=/
ROBOTS_DISALLOW=/admin,/login| Variable | Purpose |
|---|---|
DOMAIN | The domain the site is served from. |
SITE | The full site URL. |
API | The WordPress REST API base URL, ending in /wp-json/wp/v2. |
GA and GA_TRACKING_ID | Google Analytics switch and tracking ID. |
IMAGE_DOMAINS | Comma-separated domains that images may be loaded from. |
ROBOTS_ALLOW and ROBOTS_DISALLOW | Paths for the generated robots.txt. |
SEO details are set in data/metadata.json.