Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.

Commit f935f45

Browse files
committed
simplify env vars
1 parent 803be44 commit f935f45

File tree

1 file changed

+8
-17
lines changed

1 file changed

+8
-17
lines changed

.env.sample

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,16 @@
1-
# Learn more about ENV variables at https://github.com/WebDevStudios/nextjs-wordpress-starter/wiki
1+
# Learn more about ENV variables at https://github.com/WebDevStudios/nextjs-wordpress-starter/wiki/env-variables
22

3-
# Tells next.js we're in development mode
3+
# Tells Next.js we're in development mode. You do not need a Vercel account for this.
44
VERCEL_ENV="development"
55

6-
# Allows node to work with local self-signed certificates.
6+
# Allows Node to work with local, self-signed certificates.
77
NODE_TLS_REJECT_UNAUTHORIZED="0"
88

9-
# Your local WordPress URL.
10-
LOCAL_WORDPRESS_API_URL="https://nextjswp.test/"
9+
# Your WordPress URL.
10+
WORDPRESS_URL="https://nextjs.wpengine.com/"
1111

12-
# Your development WordPress URL.
13-
DEV_WORDPRESS_API_URL="https://devwordpress.com"
14-
15-
# Your staging WordPress URL.
16-
STAGING_WORDPRESS_API_URL="https://stagingwordpress.com/"
17-
18-
# Your production WordPress URL.
19-
PROD_WORDPRESS_API_URL="https://productionwordpress.com/"
20-
21-
# This needs to match PREVIEW_SECRET_TOKEN constant in wp-config.php. It can be any random string.
22-
WORDPRESS_PREVIEW_SECRET="ANY_RANDOM_STRING_SEE_README"
12+
# This needs to match WORDPRESS_PREVIEW_SECRET constant in wp-config.php. It can be any random string.
13+
WORDPRESS_PREVIEW_SECRET="ANY_RANDOM_STRING_OF_TEXT"
2314

2415
# Your WordPress username.
2516
WORDPRESS_APPLICATION_USERNAME="YOUR_WORDPRESS_USERNAME"
@@ -28,7 +19,7 @@ WORDPRESS_APPLICATION_USERNAME="YOUR_WORDPRESS_USERNAME"
2819
WORDPRESS_APPLICATION_PASSWORD="YOUR_GENERATED_APPLICATION_PASSWORD"
2920

3021
# Your Algolia index name.
31-
NEXT_PUBLIC_LOCAL_ALGOLIA_INDEX_NAME="YOUR_ALGOLIA_INDEX_NAME"
22+
NEXT_PUBLIC_ALGOLIA_INDEX_NAME="YOUR_ALGOLIA_INDEX_NAME"
3223

3324
# Your Algolia application ID.
3425
NEXT_PUBLIC_ALGOLIA_APPLICATION_ID="YOUR_ALGOLIA_APP_ID"

0 commit comments

Comments
 (0)