Platform Guide

GitHub Pages Deployment

Deploy Static Forms on GitHub Pages

GitHub Pages is a free hosting service for static websites. Static Forms works great with GitHub Pages since it requires no server-side code.

API Key in Code

Since GitHub Pages doesn't support environment variables for static sites, you'll need to include your API key directly in your HTML:

HTML

Public Repository

If your repository is public, your API key will be visible in the code. This is safe for Static Forms API keys, but consider using a private repository or GitHub Actions for builds if you prefer to keep it hidden.

Using GitHub Actions

For better security, use GitHub Actions to inject the API key during build:

YAML