A door to the daily drawing
The marketing shell explains odds, money flow, and how to verify a drawing — then sends people to Megapot through a host-side redirect.
Megapot Network · site factory
megapot.build is a factory for builders who want Megapot-powered marketing and referral sites — without leaking codes, wallets, or tokens into public markup. Preview a starter, bind earnings on the host, deploy to Cloudflare Pages.
What you get
The old megapot.build builder baked an invite URL into downloaded HTML. This factory keeps the public surface clean: players see a site; operators bind attribution in Cloudflare env. The template library behind the shells still lives at BuiltByGoat/megapot-templates.
The marketing shell explains odds, money flow, and how to verify a drawing — then sends people to Megapot through a host-side redirect.
TypeScript factory, cribble tokens, and a Cloudflare-shaped marketing path. Clone, preview, deploy. No third design system to invent.
Bind destination and wallet names in private env. Public copy never prints a referral code or a payout address.
Starter path
One scroll experience: the problem with opaque lotteries, how Megapot works, published odds, and a responsible-play note. Structure follows the megapot-templates contract (self-contained page, repeated CTA, independence disclaimer) with the invite token retired.
/go, not an invite URL.templates/marketing is a static Cloudflare Pages project: HTML, cribble CSS, and a Pages Function.Odds, money flow, and receipts — then a play button that does not expose how the operator is credited.
Play today → /goPrivate binding
Set these on Cloudflare Pages (or in .env.local for Next). Documented as names only. Do not put secrets in NEXT_PUBLIC_*.
| Name | Where it lives | Role |
|---|---|---|
MEGAPOT_PLAY_DESTINATION | Pages Function / server | Absolute URL /go redirects to. Empty → public Megapot origin. |
MEGAPOT_REFERRER_ADDRESS | Server only | Reserved for a future on-chain app template. Unused by the marketing shell. |
MEGAPOT_API_KEY | Server only | Data API key if a fork adds server reads. Never ship it in the bundle. |
NEXT_PUBLIC_SITE_NAME | Public label | Factory title. Safe to expose. Not attribution. |
Hard rule
No referral codes, wallet addresses, or API tokens in landing copy, footers, README badges, or starter HTML. Attribution is a host concern. If you need the older HTML token set (including an invite placeholder), use it only in a private generator — not in anything this factory publishes.
Developer flywheel
The factory exists to grow Megapot players and Megapot builders at the same time. Pick the door that matches the visit.