Skip to content

Latest commit

 

History

History
36 lines (20 loc) · 1.67 KB

README.md

File metadata and controls

36 lines (20 loc) · 1.67 KB

🚀 Nanophonics Landing Page

Netlify Status

Nanophonics is a smart app team from Croatia

Based on Gatsby 2.0 starter

GoogleAnalytics

This site uses google-analytics to track events.

Edit gatsby-config.js and enter your GA tracking ID in the gatsby-plugin-google-analytics.

reCAPTCHA

This site uses react-google-recaptcha to render the reCAPTCHA widget.

To make the reCAPTCHA work, you’ll need to do the following:

  1. Sign up for a reCAPTCHA API key pair for your site.
  2. Log in to your Netlify account, and add the following environment variables to your site’s Settings > Build & deploy > Build environment variables:
  • SITE_RECAPTCHA_KEY with your reCAPTCHA site key.
  • SITE_RECAPTCHA_SECRET with your reCAPTCHA secret key.
  1. Change the build command for your site to

    echo -e "GATSBY_SITE_RECAPTCHA_KEY=$SITE_RECAPTCHA_KEY\nGATSBY_SITE_RECAPTCHA_SECRET=$SITE_RECAPTCHA_SECRET" >> .env.production && gatsby build

Note: There’s probably a more elegant way to make the SITE_RECAPTCHA_KEY environment variable available to Gatsby in production. This was just the quickest way I found to make it work without having to duplicate the variable

To see the reCAPTCHA widget locally, add GATSBY_SITE_RECAPTCHA_KEY=your-reCAPTCHA-API-site-key to your local .env.development file.