Liferay LogoGatsby Boilerplate
  • Docs
  • Blog
  • Onboarding
  • Updates
  • Migration From Electric
    • First Considerations
      • What is?
      • Styling
      • Structure
    • Migration Guides
      • From Blog template
      • From Docs template
      • From Tutorials template
      • From Updates template
  • Troubleshooting
  • Additional Features
  • Deployment
  • Enviroment Variables

Enviroment Variables

Config and enviroment(.env) files

Gatsby uses a standard to define enviroment variables on his code.

You can provide environment variables to your site to customize its behavior in different environments. Gatsby Boilerplate offers two possible files: .env.production which is used to set environment variables on production and .env.development that can be used to set environment variables on development.

Gatsby Boilerplate uses the following environment variables:

  • ALGOLIA_API_KEY is used to set the API Key for Algolia search service.
  • ALGOLIA_INDEX_NAME is used to set another one necessary Algolia credential to use the service.
  • GA_TRACKING_ID is used to set the tracking ID for Google Analytics track your app using gatsby-google-analytics plugin.
  • GITHUB_REPO is used to make references of a repo that have been passed to some components like Footer, Navigation...
  • PROJECT_NAME is used to define some titles on the page. Default value: Gatsby Boilerplate.
  • WEDEPLOY_AUTH_SERVICE_URL is used to set your WeDeploy auth service URL. More info on this link
  • WEDEPLOY_MASTER_TOKEN is used to set your WeDeploy project's master token.

For more information to improve this file, check this guide.

Except as otherwise noted, the content of this site is licensed under CC BY-SA 4.0 license.

  • Github Logo