Skip to content

runningbeta/nanophonics

Repository files navigation

🚀 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.

About

Simple Gatsby 2.0 landing page

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published