Hosting
Where your directory can run, what each host can do, and how to deploy to it. Set your choice in
src/config/directory.config.json:
"hosting": { "provider": "cloudflare-workers", "project": "" }provider is one of cloudflare-workers (the default), cloudflare-pages, netlify,
render-static, render-node or github-pages. project is the host’s name for the site, where a
command needs one (the Cloudflare Pages project, the Render service). Empty means your project folder’s
name.
Not sure? Choose Cloudflare Workers. Its free plan allows commercial use, it runs every feature, and the rest of these pages are written for it.
The static site works everywhere. Every host below serves a site put online (Put your site online): your listings, search, filters, saved listings, feeds, the quiz and the report. The differences are in the server features, which need a host that runs code:
- submissions arriving as pull requests (Automatic submissions);
- the online checkout and its webhook (Sponsorship payments);
- GitHub sign-in to the CMS (Connect GitHub).
npm run doctor checks your choice against what you’ve switched on, and says what’s missing.
At a glance
Section titled “At a glance”| Host | Server features | Security headers | Rate-limit counts | Daily rebuild | Commercial use on the free plan |
|---|---|---|---|---|---|
| Cloudflare Workers | Yes | dist/_headers (up to 100 rules) |
A KV namespace bound as RATE_LIMIT |
GitHub Actions builds and deploys with Wrangler (CLOUDFLARE_API_TOKEN, CLOUDFLARE_ACCOUNT_ID) | Yes |
| Cloudflare Pages | Yes | dist/_headers (up to 100 rules) |
A KV namespace bound as RATE_LIMIT |
A deploy hook (Settings → Builds → Deploy hooks) as DEPLOY_HOOK_URL | Yes |
| Netlify | Yes | dist/_headers |
Upstash Redis | A build hook (Site configuration → Build hooks) as DEPLOY_HOOK_URL | Yes |
| Render (static site, experimental) | No (fallbacks) | render.yaml, written by npm run setup:host-files |
Not needed | A deploy hook (Settings → Deploy Hook) as DEPLOY_HOOK_URL | Yes |
| Render (Node server, experimental) | Experimental: the submission and checkout limits apply site-wide, not per visitor (why). Prefer Cloudflare or Netlify | The Node server applies dist/_headers |
Memory (one instance), or Upstash Redis | A deploy hook (Settings → Deploy Hook) as DEPLOY_HOOK_URL | Yes |
| GitHub Pages | No (fallbacks) | None: the policy arrives as a <meta> tag only |
Not needed | The Pages workflow builds and deploys on a schedule itself (adapters/github-pages/pages.yml) | No. GitHub’s terms rule out sites run mainly for commercial transactions. A private repository needs a paid GitHub plan. |
When a feature isn’t supported
Section titled “When a feature isn’t supported”| Feature | Without it |
|---|---|
| Submissions | The form service emails you each submission, and npm run submissions:import turns its export into pull requests. |
| The online checkout | Payment links (advertise.checkout.provider: "links"), with placements entered in the CMS. |
| GitHub sign-in to the CMS | The access-token sign-in, which needs no server. |
| Security headers | The policy as a <meta> tag, which every page already has. Framing protection and the other headers are lost. |
Deploying, host by host
Section titled “Deploying, host by host”npm run deploy builds the site and deploys it with your host’s own command. It’s for deploying from
your own computer, before you’ve connected GitHub. Once your host builds from your repository,
pushing to main deploys.
Cloudflare Workers
Section titled “Cloudflare Workers”The default, described in full in Deploying for the static site, and the pipeline’s step 5 for the server features.
- Copy
wrangler.example.jsonctowrangler.jsonc, and set itsnameandcompatibility_date. npx wrangler login, thennpm run deploy.- For the server features, set each secret with
npx wrangler secret put NAME. Create the rate-limit store:npx wrangler kv namespace create RATE_LIMIT, then add it towrangler.jsonc.
The daily rebuild: GitHub Actions builds and deploys with Wrangler. It needs the
CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID repository secrets.
Cloudflare Pages
Section titled “Cloudflare Pages”- Workers & Pages → Create → Pages → Connect to Git. Build command
npm run build, output directorydist, and the variableNODE_VERSION=22. Or deploy from your computer: sethosting.projectto the project’s name, thennpm run deploy. - For the server features:
- The functions: copy the adapters into
functions/.npm run setupdoes this, or see Other hosts. - Secrets: set them under Settings → Variables and Secrets.
- Rate limits: bind a KV namespace as
RATE_LIMITunder Settings → Bindings.
- The functions: copy the adapters into
- The daily rebuild: create a deploy hook (Settings → Builds → Deploy hooks), and add it as the
DEPLOY_HOOK_URLrepository secret.
Netlify
Section titled “Netlify”- Add new site → Import an existing project. Build command
npm run build, publish directorydist. Netlify readsdist/_headersas Cloudflare does. - For the server features:
- The functions: nothing to do. A site still on the default host (
hosting.provider"cloudflare-workers", as the template ships) becomes a Netlify site when Netlify builds it, and the build copies the adapters intonetlify/functions/itself.npm run setupdoes the same, and a host chosen in the config is left as it is. - Secrets: set them under Site configuration → Environment variables.
- The functions: nothing to do. A site still on the default host (
- Rate limits: create a free Upstash Redis database, and set its
UPSTASH_REDIS_REST_URLandUPSTASH_REDIS_REST_TOKENas environment variables. Without them, each function instance counts on its own, and the doctor warns. - The daily rebuild: create a build hook (Site configuration → Build & deploy → Build hooks),
and add it as
DEPLOY_HOOK_URL.
Two limits to know:
- Netlify Forms: it works only on Netlify, and a function can’t send to it. Submissions and the checkout need Formspree, Web3Forms or a custom endpoint.
- Time limit: a function stops after 10 seconds. Reading the submitted website stops after 6 seconds in all (the fields it couldn’t fill are left for you), so with AI suggestions on, keep them on the smallest model.
Vercel
Section titled “Vercel”The starter keeps an adapter for Vercel ("provider": "vercel", adapters/vercel/): it works on
Vercel’s paid plans, but isn’t officially supported or tested.
Render
Section titled “Render”Experimental. Render hasn’t been tested on a real deploy yet.
- The Node server: until Render’s visitor-address header is confirmed, the rate limits treat every visitor as one. So the submission and checkout limits apply to the whole site: 5 submissions an hour and 10 checkouts an hour across all visitors (
submissions.rateLimit.perIpPerHour,advertise.checkout.perIpPerHour), and only one checkout can be open at a time.- The static site: Render doesn’t document how it applies two header rules that match the same page, so check the security headers on your live site (
npm run doctor -- --live).For the server features, choose Cloudflare or Netlify instead.
Render offers two ways in:
- A static site, which is free but runs no server features:
"provider": "render-static". - A web service running the starter’s Node server, which runs every feature:
"provider": "render-node".
Either way:
- Run
npm run build, thennpm run setup:host-files. This writesrender.yaml, a Render Blueprint for the service. Commit it. - On Render: New → Blueprint, and pick the repository. Render reads
render.yaml. - Enter each secret it lists as
sync: falsewhen Render asks. Render keeps them, never the repository. - The daily rebuild: copy the service’s deploy hook (Settings → Deploy Hook) into the
DEPLOY_HOOK_URLrepository secret.
The static site:
- Headers: they’re in
render.yaml, from the build. - After changes: run
npm run setup:host-filesagain after changing the security settings, embeds or the CMS. The doctor says when it’s out of date. - Old rules: Render keeps header rules a Blueprint no longer lists, so delete an old one in the dashboard (Settings → Headers).
The Node server:
- What it does: every build also writes
dist-server/index.mjs, a small server that serves the site, appliesdist/_headersas Cloudflare does, and runs the server features. Render starts it withnode dist-server/index.mjs./api/healthanswersokfor Render’s health check. - Use a paid instance. Free web services sleep after 15 minutes without traffic, and the first visitor after that waits about a minute.
- Rate limits: one instance counts them in memory. But until Render’s visitor-address header is confirmed, every visitor counts as one (see the note above). With more than one instance, set Upstash’s two variables.
- The visitor’s address: see “Any Node host” below.
Any Node host
Section titled “Any Node host”The same server runs anywhere Node 22.23.4 or later does: a VPS, Fly.io, Railway, or Docker. Only Render is tested.
npm run build && npm run build:server.node dist-server/index.mjs.PORTsets the port (default 8080).DIST_DIRsays where the site is, if it isn’t indist/besidedist-server/.- Put it behind a proxy that handles HTTPS and sets
X-Forwarded-Proto.
The visitor’s address, for the rate limits:
- Set
CLIENT_IP_HEADERto the header your proxy sets and a visitor can’t, such asx-real-ipwith nginx’sproxy_set_header X-Real-IP $remote_addr. - Without it, the server counts by the connection’s own address. Behind a proxy, that’s the proxy’s address, so every visitor shares one count. That’s strict, but it can’t be got round. A forwarded-for header that visitors can add to is never trusted.
Fetching submitted websites: on Node, the submission pipeline’s website requests connect to the very address it checked. That closes the DNS gap described in the pipeline’s Security for this host.
GitHub Pages
Section titled “GitHub Pages”For a non-commercial directory without the functions only. GitHub’s terms rule out sites run mainly for commercial transactions. A private repository needs a paid GitHub plan.
- Copy
adapters/github-pages/pages.ymlto.github/workflows/pages.yml(npm run setupdoes it). - In the repository: Settings → Pages → Build and deployment → Source: GitHub Actions.
- A custom domain: the site expects to be at the root of its domain. Use a custom domain
(Settings → Pages → Custom domain, and
baseURLinsite.config.json), or name the repository<your-user>.github.io. - Push to
main. The workflow builds and publishes the site, and runs again every day, which is the daily rebuild. It needs no secret.
What you give up:
- No server features: see the fallbacks above.
- No security headers: every page still carries its security policy as a
<meta>tag. But a<meta>policy can’t stop other sites framing your pages, andnosniffand the others can’t be set.
Plan details and sources
Section titled “Plan details and sources”Read from each host’s own documentation on 2026-11-11. Plans change: check the source before you rely on one.
- Cloudflare Workers. Most directories: free for commercial use, every feature, the starter’s default.
- Commercial use: The free plan allows commercial use.
- KV’s free plan allows 1,000 writes a day: each submission, website lookup and checkout uses one, plenty for a small directory. Past it, until midnight UTC, requests are let through without being counted (the spam check still runs), and the site’s logs say so once.
- Secrets go in: npx wrangler secret put NAME, or the Worker’s variables and secrets in Cloudflare’s dashboard (Cloudflare’s help: https://developers.cloudflare.com/workers/configuration/secrets/).
- Sources: Headers (100 rules), KV.
- Cloudflare Pages. A site already on Pages. New sites: choose Workers, where Cloudflare points new projects.
- Commercial use: The free plan allows commercial use.
- Bind a KV namespace as RATE_LIMIT under Settings → Bindings.
- Secrets go in: npx wrangler pages secret put NAME –project-name
, or the project’s variables and secrets in Cloudflare’s dashboard. - Sources: Headers (100 rules).
- Netlify. Buyers who already use Netlify, or want Netlify Forms without a form service.
- Commercial use: The free plan allows commercial use, within its usage limits.
- Time limit: Synchronous functions stop after 10 seconds (26 on request). Reading the submitted website stops after 6 seconds in all, so a slow website alone can’t reach that; with AI suggestions on, keep them on the smallest model.
- Netlify Forms works only on Netlify, and a function can’t send to it: submissions and the checkout need Formspree, Web3Forms or a custom endpoint.
- Secrets go in: the site’s environment variables in Netlify (Netlify’s help: https://docs.netlify.com/environment-variables/get-started/).
- Sources: Function time limit.
- Render (static site, experimental). Experimental: a free static directory on Render, not yet tested on a real deploy.
- Experimental: Render (static site) is experimental: it hasn’t been tested on a real deploy, and Render doesn’t document how it applies two header rules that match the same page, so check the security headers on your live site (npm run doctor – –live). Cloudflare Workers, Cloudflare Pages and Netlify read the build’s headers file directly, with no such question.
- Commercial use: Free static sites allow commercial use.
- Render doesn’t read dist/_headers: the headers go in render.yaml, which npm run setup writes and npm run doctor checks. Render keeps header rules a Blueprint no longer lists, so remove an old one in the dashboard.
- Secrets go in: the static site → Environment (build variables only).
- Sources: Static site headers, Blueprint spec.
- Render (Node server, experimental). Experimental: rate limits apply site-wide until Render’s visitor-address header is confirmed. For the server features, choose Cloudflare or Netlify.
- Experimental: Render (Node server) is experimental. Until its visitor-address header is confirmed, the rate limits treat every visitor as one, so the submission and checkout limits apply site-wide: 5 submissions an hour and 10 checkouts an hour across all visitors (submissions.rateLimit.perIpPerHour, advertise.checkout.perIpPerHour), and only one checkout open at a time. For the server features, choose Cloudflare or Netlify instead.
- Commercial use: Allowed on every plan. Free web services sleep after 15 minutes without traffic and take about a minute to wake, so use a paid instance for the server features.
- One instance counts the rate limits in memory, which is sound. With several, add Upstash.
- Secrets go in: the web service → Environment.
- Sources: Free instances, Blueprint spec.
- GitHub Pages. A non-commercial directory that only needs to be online: no server features, and no security headers.
- Commercial use: GitHub’s terms rule out sites run mainly for commercial transactions. A private repository needs a paid GitHub plan.
- The site expects to be at the root of its domain: use a custom domain, or a repository named
.github.io. - No headers: the policy still arrives as a tag, but framing protection, nosniff and the others can’t be set.
- Secrets go in: none: GitHub Pages runs no functions.
- Sources: GitHub Pages limits.