Configure a Cloudflare Worker to collect and store email submissions from your launchpage. This guide covers both Wrangler CLI and UI-based setup methods.
Launchpage.xyz includes a contact form that submits visitor information. To receive these submissions, you'll deploy a Cloudflare Worker that:
The contact form worker code is available at:
github.com/simplebytes-com/launchpage-contact-worker
# Clone the worker repository
git clone https://github.com/simplebytes-com/launchpage-contact-worker.git
cd launchpage-contact-worker
# Install dependencies
npm install
# Install Wrangler globally
npm install -g wrangler
# Login to Cloudflare
wrangler login
This will open a browser window for you to authenticate with Cloudflare.
Create a KV namespace to store form submissions:
# Create production KV namespace
wrangler kv:namespace create "SUBMISSIONS"
# Note the ID that's returned - you'll need it next
Wrangler will output something like:
<