Static Site Environment Variables

Static sites environment variables are useful when you want to have environment specific configuration. API Keys are a common use of environment variables. IInstead of hardcoding API keys into your templates store it in an environment variable. Simply add and environment variable:

Then use it in your template:

<script type="text/javascript">
  analytics.load({{ env.apiKey }});
  analytics.page();
</script>

Join us

Interested in joining the team as coworker or investor?

contact@takeshape.com