Use case

Ship a SaaS landing page with one command.

A SaaS landing page built as a supported Next.js app can be live on a production URL in minutes, without creating an account or starting a subscription. One command from the project directory builds the page, publishes it as a Cloudflare Worker, and charges prepaid hosting time in USDC: $6.01 for 30 days.

The command

From the landing page project root, run:

$ npx x402-hosting@latest deploy --days 30

The CLI adds the OpenNext Cloudflare configuration on the first run, builds locally, and only then asks for payment. The API returns an HTTP 402 challenge — the authoritative quote — and the wallet pays $0.01 for the upload plus $0.20 per project-day. A failed local build costs nothing.

deploy request402 payment challengeUSDC pays via x402site live
The x402 protocol turns a hosting invoice into an HTTP challenge a wallet can sign.

Signup forms and dynamic requests

A landing page with a signup or contact form works through a Next.js route handler. Each active project includes 100,000 dynamic requests and 15 million CPU milliseconds, alongside all static assets, so form submissions and small API endpoints run in production without extra configuration. Supported Next.js versions are 15.5.21 up to (but not including) 16, and 16.2.11 and later.

What the launch costs

  • First deployment: $0.01 upload plus $0.20 × project-days
  • Thirty days of landing page hosting: $6.01 prepaid in USDC
  • Iterate on the page with redeploys at the same URL: $0.01 each
  • Renewal: $0.20 × additional project-days
  • No subscription, stored card, or dashboard to manage

No subscription to forget

Hosting is prepaid, so the landing page cannot accrue surprise charges. When the prepaid period ends, the project expires and a 30-day grace window keeps renewal possible at the same URL. Check the numbers any time on the pricing page; status and deployment-history reads are always free.

When the company forms

The wallet that paid the first upload owns the project. If the side project becomes a company, ownership can move to a company wallet with a single transfer that costs $0.01 and keeps the site online. See the ownership transfer guide for the exact flow.

Related guides