The site and content for betta.io.
Run npm run start to start the local development server.
Deployment of the master branch is automatic via Netlify.
This site uses gatsby-plugin-google-gtag for Google Analytics 4. Analytics is enabled only when a GA4 Measurement ID is provided via environment variable.
- Set
GATSBY_GA_MEASUREMENT_IDto your GA4 ID (formatG-XXXXXXXXXX).- Local (temporary):
export GATSBY_GA_MEASUREMENT_ID=G-XXXXXXXXXX && npm run start - Local (build):
GATSBY_GA_MEASUREMENT_ID=G-XXXXXXXXXX npm run build - Netlify: Site settings → Build & deploy → Environment → add
GATSBY_GA_MEASUREMENT_ID
- Local (temporary):
Privacy defaults
- IP anonymization enabled (
anonymize_ip: true) - Respects Do Not Track (
respectDNT: true) - Excludes the offline shell route from tracking
The site generates robots.txt via gatsby-plugin-robots-txt.
- Default policy allows all:
User-agent: *andAllow: /. - Sitemap is advertised at
/sitemap-index.xml.
Security headers are configured in netlify.toml (applied by Netlify):
- HSTS, X-Content-Type-Options, X-Frame-Options, Referrer-Policy, Permissions-Policy
- CSP is currently in Report-Only mode; adjust or enforce as needed
- Edit the
Content-Security-Policy-Report-Onlyvalue innetlify.toml - Switch to
Content-Security-Policyto enforce once validated
- Edit the
This library is released under the MIT License.
