Defining Environment Variables

Environment variables in Gatsby can be placed:

  • In client-side JavaScript through environment configuration files, as we’ve seen in previous sections
  • In server-side Node.js implementations via infrastructure providers like Netlify, operating systems, or command-line executions of NPM scripts

Let’s take a closer look at client-side environment variables and server-side environment variables in turn.


Posted

in

,

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *