-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #827 from CobyPear/DB-6233-dotenv-example-refinements
DB-6233: Add comments to .env.example env vars
- Loading branch information
Showing
7 changed files
with
72 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@pantheon-systems/decoupled-kit-health-check': patch | ||
--- | ||
|
||
Fix link to WordPress preview site settings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'create-pantheon-decoupled-kit': patch | ||
--- | ||
|
||
[next-wp][gatsby-wp][next-drupal] Add comments describing each env var in the | ||
`.env.example` |
16 changes: 13 additions & 3 deletions
16
packages/create-pantheon-decoupled-kit/src/templates/gatsby-wp/.env.example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,15 @@ | ||
# Copy as .env.development.local to override envars for local development | ||
# Optional environment variables are commented out | ||
|
||
# The graphql endpoint of your WordPress instance | ||
WPGRAPHQL_URL=https://my-backend-site.pantheonsite.io/wp/graphql | ||
#PANTHEON_UPLOAD_PATH=/example | ||
#WP_APPLICATION_USERNAME= | ||
#WP_APPLICATION_PASSWORD= | ||
|
||
# Username and Application Password for a valid user in the WordPress instance | ||
# Required to fetch private content from WordPress | ||
# WP_APPLICATION_USERNAME=user | ||
# WP_APPLICATION_PASSWORD=example_pass | ||
|
||
# Sets the gatsby.config.pathPrefix setting for you | ||
# This value is only required if using the pathPrefix feature | ||
# See https://www.gatsbyjs.com/docs/how-to/previews-deploys-hosting/path-prefix/ for more information | ||
# PANTHEON_UPLOAD_PATH=/example |
31 changes: 22 additions & 9 deletions
31
packages/create-pantheon-decoupled-kit/src/templates/next-drupal/.env.example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,27 @@ | ||
# Copy as .env.development.local to override envars for local development | ||
# Optional environment variables are commented out | ||
|
||
# The URL of your Drupal site | ||
BACKEND_URL=http://my-backend-site.pantheonsite.io | ||
FRONTEND_URL=http://my-frontend-site.pantheonsite.io | ||
IMAGE_DOMAIN=my-frontend-site.pantheonsite.io | ||
PREVIEW_SECRET=mysecret | ||
CLIENT_ID=my-client-id | ||
CLIENT_SECRET=my-client-secret | ||
NEXT_PUBLIC_FRONTEND_URL=$FRONTEND_URL | ||
|
||
# The domain where your images are hosted. By default, we will set the domain of the BACKEND_URL | ||
# to the value of IMAGE_DOMAIN. Set this if your images are hosted somewhere other than your Drupal instance | ||
# See https://nextjs.org/docs/pages/api-reference/components/image#domains for more information | ||
# IMAGE_DOMAIN=some-other-domain.example | ||
|
||
# The secret set on your Drupal Preview Site. Required for preview functionality | ||
# See https://decoupledkit.pantheon.io/docs/backend-starters/decoupled-drupal/configuring-preview-site for more information on configuring a preview site | ||
# PREVIEW_SECRET=super-secret-preview-secret | ||
|
||
# The credentials of your Drupal OAuth client | ||
# CLIENT_ID=my-client-id | ||
# CLIENT_SECRET=my-client-secret | ||
|
||
# Sets debug mode for instance of DrupalState. | ||
# Leave empty to turn off debug mode | ||
DEBUG_MODE= | ||
# Leave empty or remove to turn off debug mode | ||
# DEBUG_MODE=true | ||
|
||
#PANTHEON_UPLOAD_PATH=/example | ||
# The value of Next.js basePath | ||
# See https://nextjs.org/docs/pages/api-reference/next-config-js/basePath for more information | ||
# This variable is only required if using the basePath feature | ||
# PANTHEON_UPLOAD_PATH=/example |
30 changes: 24 additions & 6 deletions
30
packages/create-pantheon-decoupled-kit/src/templates/next-wp/.env.example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,25 @@ | ||
# Copy as .env.development.local to override envars for local development | ||
# Optional environment variables are commented out | ||
WPGRAPHQL_URL= | ||
IMAGE_DOMAIN= | ||
#PANTHEON_UPLOAD_PATH=/example | ||
#PREVIEW_SECRET= | ||
#WP_APPLICATION_USERNAME= | ||
#WP_APPLICATION_PASSWORD= | ||
|
||
# The graphql endpoint of your WordPress instance | ||
WPGRAPHQL_URL=https://my-backend-site.pantheonsite.io/wp/graphql | ||
|
||
# Username and Application Password for a valid user in the WordPress instance | ||
# Required to fetch private content from WordPress | ||
# WP_APPLICATION_USERNAME=user | ||
# WP_APPLICATION_PASSWORD=example_pass | ||
|
||
# The secret set on your WordPress Preview Site. Required for preview functionality | ||
# See https://decoupledkit.pantheon.io/docs/backend-starters/decoupled-wordpress/configuring-preview-site for more information on configuring a preview site | ||
# PREVIEW_SECRET=super-secret-preview-secret | ||
|
||
# The domain where your images are hosted. By default, we will set the domain of the WPGRAPHQL_URL | ||
# to the value of IMAGE_DOMAIN. Set this if your images are hosted somewhere other than your WordPress instance | ||
# See https://nextjs.org/docs/pages/api-reference/components/image#domains for more information | ||
# IMAGE_DOMAIN=some-other-domain.example | ||
|
||
|
||
# Sets the next.config.basePath setting for you | ||
# This variable is only required if using the basePath feature | ||
# See https://nextjs.org/docs/pages/api-reference/next-config-js/basePath for more information | ||
# PANTHEON_UPLOAD_PATH=/example |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters