Pando Exchange Docs Build your marketplace
On this page

Build

Deploy

Where the path stops today, and how the template will be deployed once it is published - with the deploy button, by hand with Wrangler, or with an AI assistant - and a custom domain.

Where the path stops today#

The template is not published yet. Today you can make your settings in the builder and copy your settings code, and stop there: there is no public copy of the template to deploy, by the button or by hand. Keep your settings code until the template is published.

The rest of this page describes the steps for once it is. They have been followed by hand, from a copy made inside Pando, to one real Cloudflare account, on 4 December 2026. Cloudflare's own deploy screen and a Workers Builds run have not.

Three ways, once the template is published#

Way When to use it
The deploy button You want Cloudflare's own screen to copy the template and deploy it
By hand with Wrangler You are comfortable in a terminal
With an AI assistant You want an assistant to do the clicks with you

Whichever you choose, the result is a Worker in your account, with three SQLite Durable Object classes (books, the registry and settings), an R2 bucket for pictures, an Images binding and two rate limits. Have what you need ready first.

The deploy button#

The Cloudflare template is not published yet, so its deploy screen opens once it is. Until then, the builder's Deploy to Cloudflare button takes you to the next screen, where you can copy your settings.

Once it is published, the button opens Cloudflare's own deploy screen in your account, which copies the template into a repository in your own Git account and connects it to Workers Builds. Cloudflare's first-deploy screen asks for one secret, MARKET_ADMIN_TOKEN: enter your admin token there. Everything else is added after the first deploy.

Not verified. Cloudflare's own deploy screen, its secrets form and a Workers Builds run have not been walked.

Deploy by hand with Wrangler#

You need Git, Node.js 22.x at 22.18 or later with npm, and a Cloudflare account on the Workers Paid plan with R2 switched on.

1. Get your own copy. Once the template is published, make your own copy of it in your Git account. In the first line below, replace the words between the quotes with your copy's clone address, then run the three lines:

bash
TEMPLATE_URL="your copy's clone address"
git clone "$TEMPLATE_URL" marketplace
cd marketplace

Run every command below from that directory.

2. Choose the Worker's name. The template deploys a Worker named operator-nft-marketplace. If that name is taken in your account, or you want another, change "name" in wrangler.jsonc to an unused name before you deploy: npm run deploy updates an existing Worker of that name.

3. Install, sign in and deploy.

bash
npm ci
npx wrangler login
npm run deploy

npx wrangler login opens your browser to sign in to the Cloudflare account the Worker goes into. npm run deploy stages the static files and the design under themes/ and runs wrangler deploy, which makes the R2 bucket for the Worker and applies the Durable Object migrations. It prints the Worker's address.

4. Set your secrets. Wrangler asks for each value at a masked prompt. Type each one yourself; never put a secret on a command line or in a file you commit. Each change deploys a new version.

bash
npx wrangler secret put MARKET_ADMIN_TOKEN

If OpenSea is on for your marketplace, also:

bash
npx wrangler secret put OPENSEA_API_KEY

If you have your own Ethereum RPC (optional), also:

bash
npx wrangler secret put RPC_URL

On Ink, set INK_RPC_URL the same way instead of RPC_URL, and INK_PURCHASE_RPC_URL if OpenSea is on. Secrets and variables says what each is for.

5. Store your settings at your site's /setup. See Setup.

To bundle the Worker and count its assets without deploying:

bash
npm run deploy -- --dry-run

From your Git repository with Workers Builds#

Instead of deploying from your computer, you can connect your copy to Workers Builds: sign in to your Git host, grant Cloudflare's Git integration access to your copy, then in Workers & Pages create a Worker from it. Choose an unused Worker name and your production branch, use the repository root, set the build variable NODE_VERSION to 22, leave the build command empty, and use npm run deploy as the deploy command. Turn off builds for other branches, or give a preview its own resources and secrets.

Run it on your own computer first#

From your copy:

bash
npm ci
cp operator-settings.example .dev.vars

Edit .dev.vars before you start the server, which reads it once at start:

  • set MARKET_ADMIN_TOKEN to a fresh local token of at least 32 random characters;
  • set OPENSEA_API_KEY only if OpenSea is on;
  • on Ink, set INK_RPC_URL for orders made on your site and the RPC check, and INK_PURCHASE_RPC_URL for OpenSea checkout.

.dev.vars is ignored by Git. Then start the server, which keeps that terminal busy until you stop it:

bash
npm run dev

Open http://127.0.0.1:8787/setup, paste the settings code you copied from the builder and choose Review settings. The builder at Pando's site does not open setup on a plain http local address, so paste the code yourself. Storing settings starts the first read; allow about half a minute for the book to read inventory.

Set up with an AI assistant#

On Review or Connect your new site, choose Copy instructions for your AI assistant and paste the text into an AI assistant you trust. You can read it first. The copied text gives the steps for your host, chain and OpenSea choice. It does not contain your settings code or your admin token.

The Cloudflare template is not published yet. The copied text tells the assistant to stop until the template is published.

The copied text begins with these three rules, exactly as written:

  • Use only the Git, hosting and provider accounts the person authorizes. Confirm the target account and new project together. Leave other projects alone. Leave the template's files as shipped.
  • Get approval before creating anything that can cost money or starting a deployment. Git imports and secret changes can start deployments too. If a step fails, stop and tell the person what happened. Keep checks and prompts in place.
  • The person creates and enters every secret. Never generate, request, view, print or store a secret yourself. Have the person use the host's secret fields or a masked host prompt in their own terminal outside your session. Keep secret values out of chat, command arguments, shell history, logs and files.

Then its steps, under these titles. What each says is in the copied text, which follows your choices:

  1. Check what the person needs
  2. Get the template
  3. Prepare the hosting project
  4. Set the secrets
  5. Deploy
  6. Hand the site back to the person
  7. Check setup if asked

The software cannot control what you share with an assistant, or what an assistant with access to your browser or terminal can see. Complete /setup yourself, and type each secret into your host's own fields or your own masked terminal prompt.

Secrets#

Secrets are typed only on your host's own screen or at Wrangler's masked prompt: never in the builder and never in a link.

Secret What it is for Where it is typed
MARKET_ADMIN_TOKEN Lets you store and change your site's settings at /setup Cloudflare's first-deploy screen, or the Worker's Settings, Variables and Secrets
OPENSEA_API_KEY Your own OpenSea key, when OpenSea is on After the first deploy, in the Worker's Settings, Variables and Secrets
RPC_URL Your own Ethereum RPC. Optional After the first deploy, in the same place

On Ink, your RPC goes in INK_RPC_URL instead, and the one that checks OpenSea purchases in INK_PURCHASE_RPC_URL. Secrets and variables lists every one, with what happens without it.

A custom domain#

A new site answers at its workers.dev address; the recorded test deployment of 4 December 2026 used one and had no custom domain. To add one:

  1. In Workers & Pages, open your Worker.
  2. Choose Settings, then Domains & Routes, then Add, then Custom domain.
  3. Enter the exact hostname. It must be in a zone that is active in the same Cloudflare account. Confirm with Add domain.

Cloudflare's guide to custom domains has the detail.

Add the domain in the dashboard rather than in wrangler.jsonc. An update accepts only three changes of yours in that file (the Worker's name, an account id and the media bucket's name), so any other edit there shows as a change to the engine.

Once the domain answers over HTTPS, open /setup there to see the five checks again. Nothing in your settings names the address. On Ink, finish a listing on the hostname where you started it: a draft listing belongs to the address that prepared it.

Next#

Pando Exchange is software published by Simple Things Ltd. Each marketplace made with it is run by its operator, in the operator's own account.