Skip to content

Allow Strapi endpoint to be set by environment variable#35

Open
wlabarron wants to merge 2 commits intostrapi-community:masterfrom
wlabarron:wlabarron/endpoint-env
Open

Allow Strapi endpoint to be set by environment variable#35
wlabarron wants to merge 2 commits intostrapi-community:masterfrom
wlabarron:wlabarron/endpoint-env

Conversation

@wlabarron
Copy link

This PR adds the option for the Strapi endpoint to be set by an environment variable, STRAPI_ENDPOINT. If set, the environment variable overrides the value in _config.yml.

One use case for this is to change your Jekyll site to point to a local development version of Strapi without needing to change the hard-coded production URL in _config.yml. Alternatively, a user could remove the endpoint from the config file and always rely on an environment variable supplied by each build environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant