Skip to main content

CI/CD and automation · Advanced · 24 min

Create a preview environment for every pull request

By Padding · Updated 18 Nov 2026
GitHub Actions · Node.js 26.13 · Wrangler 4.168.0 · Playwright 1.65.1 · actionlint 1.7.12

You will have a GitHub Actions workflow that gives each pull request its own Cloudflare Worker preview with a test database, smoke-tests it in a real browser, keeps one up-to-date comment with the URL and deletes the preview when the pull request closes.

On this page

Code review is better when the reviewer can click a link and use the change. A preview environment is a short-lived copy of your app, built from one pull request, with its own address. The designer checks the layout on their phone, the product owner tries the new form, and the automated tests hit a real deployment instead of a laptop.

In this tutorial you build that for a small Cloudflare Worker that lists notes from a D1 database. Every pull request gets:

  • a Worker Preview named after the pull request, such as pr-12, at its own workers.dev address
  • its own settings: the word preview instead of production on the page, and a separate test database, so a reviewer can never change production data
  • a Playwright smoke test that opens the preview in Chromium and fails the check if the page is broken
  • one pull request comment with the URL and the test result, edited on every push instead of piling up
  • clean-up: the preview is deleted when the pull request is merged or closed

You also learn the security catch that makes preview pipelines dangerous when they are set up carelessly: pull requests from forks must never get your deploy credentials.

Cloudflare has two ways to give a Worker extra URLs. Version URLs (wrangler versions upload --preview-alias pr-12) run an uploaded version against your production bindings, so a preview would read and write the production database. Worker Previews (wrangler preview) give each preview its own variables, secrets and bindings, and Cloudflare's documentation recommends them for branch and pull request testing. This tutorial uses Previews.

Everything up to the Cloudflare step runs on your own machine without an account. The browser download in the smoke-test step is large, so run it once on a good connection if you pay for data by the gigabyte; in the workflow, GitHub's runner downloads it, not you.

Step 1 · Create the Worker project

Make a throwaway project folder, a Git repository and an npm project. Install Wrangler and Playwright at exact versions, so the workflow later runs the same tools as your laptop. Worker Previews need Wrangler 4.135.0 or later installed in the project itself; a newer global install does not count, because npx wrangler uses the project's copy:

Bash
mkdir -p ~/pr-preview-demo
cd ~/pr-preview-demo
git init -q -b main
npm init -y > /dev/null
npm pkg set type=module scripts.dev="wrangler dev --var ENVIRONMENT:local" scripts.smoke="node smoke.mjs"
npm install --save-dev --save-exact wrangler@4.168.0 playwright@1.65.1
npx wrangler --version

Keep local state, dependencies and any local secrets out of Git from the start:

Bash
cat > .gitignore <<'EOF'
node_modules/
.wrangler/
.dev.vars*
.env*
test-results/
EOF

Now the Wrangler file. The top-level settings describe production. The previews block describes every preview: it does not inherit the production bindings, so anything a preview needs is listed again, pointed at a resource that is safe to break. The two database_id values are placeholders that you replace with real IDs in the Cloudflare step; locally, Wrangler uses an SQLite file and ignores them:

Bash
cat > wrangler.jsonc <<'EOF'
{
  "$schema": "./node_modules/wrangler/config-schema.json",
  "name": "pr-preview-demo",
  "main": "src/index.js",
  "compatibility_date": "2026-11-20",
  "workers_dev": true,
  "vars": { "ENVIRONMENT": "production" },
  "d1_databases": [
    {
      "binding": "DB",
      "database_name": "pr-preview-demo",
      "database_id": "REPLACE-WITH-PRODUCTION-DATABASE-ID",
      "migrations_dir": "migrations"
    }
  ],
  "previews": {
    "vars": { "ENVIRONMENT": "preview" },
    "d1_databases": [
      {
        "binding": "DB",
        "database_name": "pr-preview-demo-test",
        "database_id": "REPLACE-WITH-TEST-DATABASE-ID",
        "migrations_dir": "migrations"
      }
    ]
  }
}
EOF

The Worker serves an HTML page listing the notes and a /health route that returns JSON. It escapes every value it puts into HTML, because a preview is a public URL and notes are user input:

Bash
mkdir -p src
cat > src/index.js <<'EOF'
const entities = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" };
const escapeHtml = (value) => String(value).replace(/[&<>"']/g, (c) => entities[c]);

export default {
  async fetch(request, env) {
    const url = new URL(request.url);

    if (url.pathname === "/health") {
      const row = await env.DB.prepare("SELECT COUNT(*) AS notes FROM notes").first();
      return Response.json({ ok: true, environment: env.ENVIRONMENT, notes: row.notes });
    }

    if (url.pathname !== "/") {
      return new Response("Not found\n", { status: 404 });
    }

    const { results } = await env.DB.prepare("SELECT body FROM notes ORDER BY id").all();
    const items = results.map((note) => `<li>${escapeHtml(note.body)}</li>`).join("\n");
    const html = `<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Team notes</title>
</head>
<body>
<p data-testid="environment">${escapeHtml(env.ENVIRONMENT)}</p>
<h1>Team notes</h1>
<ul>
${items}
</ul>
</body>
</html>`;
    return new Response(html, { headers: { "Content-Type": "text/html; charset=utf-8" } });
  },
};
EOF

Add the schema as a D1 migration, and keep sample data in a separate file. The migration runs against every database; the sample data goes only into the local and test databases:

Bash
mkdir -p migrations
cat > migrations/0001_create_notes.sql <<'EOF'
CREATE TABLE notes (
  id INTEGER PRIMARY KEY AUTOINCREMENT,
  body TEXT NOT NULL
);
EOF

cat > seed.sql <<'EOF'
INSERT INTO notes (body) VALUES
  ('Check the sign-up form on a low-end Android phone'),
  ('Ẹ kú iṣẹ́: test the Yoruba greeting renders'),
  ('Ask finance about the <b>new</b> invoice layout');
EOF

Check it worked

npx wrangler --version printed 4.168.0, and ls shows wrangler.jsonc, src, migrations, seed.sql, package.json and node_modules. package.json lists wrangler and playwright under devDependencies with no ^ in front of the versions.

Step 2 · Run it locally with a local database

Create the table in a local D1 database and load the sample notes. --local keeps everything in .wrangler/ on your disk:

Bash
npx wrangler d1 migrations apply DB --local
npx wrangler d1 execute DB --local --file seed.sql

Start the local server in your second terminal, from ~/pr-preview-demo, and leave it running. The dev script passes --var ENVIRONMENT:local, so the page says local and you never mistake your laptop for production:

Bash
npm run dev

Back in your first terminal, call the health route and look at the page:

Bash
curl -s http://localhost:8787/health
curl -s http://localhost:8787/ | grep '<li>'

Check it worked

The health route prints {"ok":true,"environment":"local","notes":3}. The page lists three <li> lines, the Yoruba note keeps its accents, and the third note shows &lt;b&gt;new&lt;/b&gt;: the tags were escaped, not rendered. Open http://localhost:8787 in a browser to see the same list under the word local.

Step 3 · Write a browser smoke test

A smoke test is a short check that the deployment is alive and the main page renders, not a full test suite. It must run in under a minute, because it runs on every push. This one opens the URL in Chromium, checks the heading, the environment label and the list, then calls /health. It reads the URL from PREVIEW_URL, so the same file tests your laptop and every preview:

Bash
cat > smoke.mjs <<'EOF'
import { chromium } from "playwright";

const base = process.env.PREVIEW_URL;
const expected = process.env.EXPECT_ENVIRONMENT ?? "preview";
if (!base) {
  console.error("Set PREVIEW_URL to the address to test.");
  process.exit(2);
}

const browser = await chromium.launch();
try {
  const page = await browser.newPage();
  const response = await page.goto(base, { waitUntil: "domcontentloaded" });
  if (response?.status() !== 200) throw new Error(`page returned ${response?.status()}`);

  const heading = await page.locator("h1").textContent();
  if (heading !== "Team notes") throw new Error(`unexpected heading: ${heading}`);

  const environment = await page.getByTestId("environment").textContent();
  if (environment !== expected) {
    throw new Error(`environment is "${environment}", expected "${expected}"`);
  }

  const notes = await page.locator("li").count();
  if (notes < 1) throw new Error("no notes on the page");

  const health = await page.request.get(new URL("/health", base).href);
  if (!health.ok() || (await health.json()).ok !== true) throw new Error("health check failed");

  console.log(`Smoke test passed: ${base} (${environment}, ${notes} notes)`);
} finally {
  await browser.close();
}
EOF

The environment check matters more than it looks. If a preview were ever wired to production settings by mistake, the page would say production and the test would fail before a reviewer touched real data.

Download Chromium for Playwright. On Linux, --with-deps also installs the system libraries it needs, using sudo:

Bash
npx playwright install --with-deps chromium

Run the test against the local server, then once with the wrong expectation to see a failure:

Bash
PREVIEW_URL=http://localhost:8787 EXPECT_ENVIRONMENT=local npm run smoke
PREVIEW_URL=http://localhost:8787 EXPECT_ENVIRONMENT=preview npm run smoke || echo "smoke test failed, as expected (exit code $?)"

Stop the local server with Ctrl+C in the second terminal when you are done.

Check it worked

The first run prints Smoke test passed: http://localhost:8787 (local, 3 notes). The second prints an error ending in environment is "local", expected "preview" and then smoke test failed, as expected. A non-zero exit code is what fails the workflow step later.

Step 4 · Create the production and test resources on Cloudflare

From here on you need a Cloudflare account. Sign in, then create two D1 databases: one for production and one shared by all previews:

Bash
npx wrangler login
npx wrangler d1 create pr-preview-demo
npx wrangler d1 create pr-preview-demo-test

Each d1 create prints a database_id. Open wrangler.jsonc and replace REPLACE-WITH-PRODUCTION-DATABASE-ID with the first ID and REPLACE-WITH-TEST-DATABASE-ID with the second. Database IDs are not secrets; they are useless without an API token, so they can live in Git.

Create the table in both databases, and load sample notes into the test database only. --remote targets the database on Cloudflare. Production is in the top-level d1_databases, so d1 migrations apply finds it and records which migrations it has run. The test database is listed only inside the previews block, so rather than rely on migrations apply finding it there, run the migration file against it directly with d1 execute, which takes the database's name:

Bash
npx wrangler d1 migrations apply pr-preview-demo --remote
npx wrangler d1 execute pr-preview-demo-test --remote --file migrations/0001_create_notes.sql
npx wrangler d1 execute pr-preview-demo-test --remote --file seed.sql

d1 execute does not keep a record of which files it has run, so the test database's schema is yours to keep in step. Each time you add a file to migrations/, run it against pr-preview-demo-test with the same command, once, before the first preview that needs it is deployed.

Deploy production once, so the Worker exists before the first preview is created under it:

Bash
npx wrangler deploy

The pipeline needs an API token. In the Cloudflare dashboard, go to your profile's API Tokens page and create a token from the Edit Cloudflare Workers template, limited to your account. The preview binds a D1 database, so make sure the token also has D1 edit permission for that account. Copy the token once; you paste it into GitHub in the next step and do not save it anywhere else. Note your account ID too: npx wrangler whoami prints it.

Treat this token as a production credential. It can edit the Worker itself, not only its previews. Keeping it in a GitHub environment limits which jobs can read it; it does not limit what the token can do.

Check it worked

npx wrangler deploy prints the production address, https://pr-preview-demo.<your-subdomain>.workers.dev. Opening it shows the word production and an empty list, because production has the table but no sample notes. If you see the three sample notes on production, you seeded the wrong database.

Step 5 · Give previews their own GitHub environment

A GitHub environment holds secrets that only jobs naming that environment can read. Put the Cloudflare credentials in an environment called preview, not in repository-wide secrets. Run these from the root of your repository clone; replace your-org/your-repo with your repository:

Bash
REPO=your-org/your-repo
gh api --method PUT "repos/$REPO/environments/preview" > /dev/null
gh secret set CLOUDFLARE_API_TOKEN --env preview --repo "$REPO"
gh secret set CLOUDFLARE_ACCOUNT_ID --env preview --repo "$REPO"

Each gh secret set prompts for the value, so the token never sits in your shell history. Do not add required reviewers to this environment: the clean-up job also uses it, and it would wait for an approval every time a pull request closes. Approval gates belong on production, as in /tutorials/require-approval-before-production-deploys-with-github-environments.

If your Worker reads its own secrets, such as a test payment key, set preview values on Cloudflare rather than in the Wrangler file. npx wrangler preview base-config secret put NAME sets a secret for every new preview, and npx wrangler preview secret put NAME --name pr-12 sets one for a single preview. Use test-mode keys there, never production ones.

Check it worked

gh secret list --env preview --repo "$REPO" lists CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID with the time you set them. The repository's Settings page shows preview under Environments.

Step 6 · Write the preview workflow

Create .github/workflows/preview.yml. One workflow handles the whole life of a preview: it listens for a pull request being opened, updated, reopened and closed, and runs the preview job or the cleanup job:

Bash
mkdir -p .github/workflows
cat > .github/workflows/preview.yml <<'YAML'
name: PR preview

on:
  pull_request:
    types: [opened, synchronize, reopened, closed]

permissions:
  contents: read

concurrency:
  group: pr-preview-${{ github.event.pull_request.number }}
  cancel-in-progress: true

jobs:
  preview:
    # Only pull requests from branches in this repository, never forks or Dependabot.
    if: >-
      github.event.action != 'closed' &&
      github.event.pull_request.head.repo.full_name == github.repository &&
      github.event.pull_request.user.login != 'dependabot[bot]'
    runs-on: ubuntu-latest
    environment:
      name: preview
      url: ${{ steps.upload.outputs.url }}
    permissions:
      contents: read
      pull-requests: write
    env:
      PREVIEW_NAME: pr-${{ github.event.pull_request.number }}
    steps:
      - uses: actions/checkout@v7
        with:
          persist-credentials: false

      - uses: actions/setup-node@v7
        with:
          node-version: 26
          cache: npm

      - run: npm ci

      - name: Create or update the preview
        id: upload
        env:
          CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
          CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
          WRANGLER_SEND_METRICS: "false"
        run: |
          output="$(npx wrangler preview --name "$PREVIEW_NAME" --json)"
          printf '%s\n' "$output"
          url="$(printf '%s' "$output" | jq -er '.preview.urls[0]')"
          echo "url=$url" >> "$GITHUB_OUTPUT"

      - run: npx playwright install --with-deps chromium

      - name: Smoke test the preview
        id: smoke
        env:
          PREVIEW_URL: ${{ steps.upload.outputs.url }}
          EXPECT_ENVIRONMENT: preview
        run: node smoke.mjs

      - name: Post or update the preview comment
        if: always() && steps.upload.outputs.url != ''
        env:
          GH_TOKEN: ${{ github.token }}
          PR_NUMBER: ${{ github.event.pull_request.number }}
          PREVIEW_URL: ${{ steps.upload.outputs.url }}
          SMOKE_RESULT: ${{ steps.smoke.outcome }}
          HEAD_SHA: ${{ github.event.pull_request.head.sha }}
        run: |
          {
            echo "### Preview for ${HEAD_SHA:0:7}"
            echo
            echo "URL: $PREVIEW_URL"
            echo
            echo "Smoke test: $SMOKE_RESULT"
            echo
            echo "This comment is updated on every push. The preview is deleted when the pull request closes."
          } > comment.md
          gh pr comment "$PR_NUMBER" --repo "$GITHUB_REPOSITORY" --edit-last --create-if-none --body-file comment.md

  cleanup:
    if: >-
      github.event.action == 'closed' &&
      github.event.pull_request.head.repo.full_name == github.repository &&
      github.event.pull_request.user.login != 'dependabot[bot]'
    runs-on: ubuntu-latest
    environment: preview
    steps:
      - uses: actions/checkout@v7
        with:
          persist-credentials: false

      - uses: actions/setup-node@v7
        with:
          node-version: 26
          cache: npm

      - run: npm ci

      - name: Delete the preview
        env:
          CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
          CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
          PR_NUMBER: ${{ github.event.pull_request.number }}
          WRANGLER_SEND_METRICS: "false"
        run: |
          if ! npx wrangler preview delete --name "pr-$PR_NUMBER" --skip-confirmation; then
            echo "::warning::Could not delete preview pr-$PR_NUMBER. It may never have been created; read the Wrangler output above."
          fi
YAML

What each part is for:

  • types: [..., closed]: closed fires for both merged and abandoned pull requests, which is when the preview should go.
  • concurrency with one group per pull request: two quick pushes do not race to update the same preview, and closing the pull request cancels a preview run still in progress, so a preview is not recreated after it was deleted.
  • environment.url: GitHub shows the preview link on the pull request's deployment entry and on the run summary, next to the comment.
  • wrangler preview --name pr-12 --json: creates the preview on the first run and updates it on later pushes. The preview URL stays the same, pr-12-pr-preview-demo.<subdomain>.workers.dev, and always serves the latest push. jq -e fails the step if the JSON has no URL. A run: step without a shell: key runs with bash -e, so a failing wrangler call in the output="$( )" assignment stops the step too.
  • The secrets are set as env: on the one step that needs them, not on the whole job, so the Playwright download and your smoke test never see the Cloudflare token.
  • Values from the event, such as the pull request number, reach run: scripts through env: rather than being pasted in with ${{ }}. That habit stops text from a pull request (a branch name or a title) from being run as shell code.
  • persist-credentials: false stops the checkout action leaving the GitHub token in .git/config, where a later step's code could read it.
  • if: always() && steps.upload.outputs.url != '': the comment is posted even when the smoke test fails, so the author sees the broken preview, but not when there is no preview at all. The job still fails, and the red check is what blocks the merge.
  • --edit-last --create-if-none: gh edits the last comment the workflow's account (github-actions[bot]) left on this pull request, or creates one if there is none. If another workflow in the repository also comments as github-actions[bot], they would overwrite each other's comments; give that workflow's comments their own marker and edit them through the API instead.
  • The clean-up step runs on every close, including pull requests that never got a preview: ones opened before this workflow was merged, or ones whose preview step failed before the upload. In that case Wrangler cannot delete anything, so the step prints a warning on the run summary instead of turning the check red. The same warning appears if the token stops working, so read the Wrangler output above it when you see one.
  • Nothing in this workflow changes the test database's schema. Every preview binds the same pr-preview-demo-test database, so keep it in step with migrations/ yourself, as the Cloudflare step and the troubleshooting list explain.

Check it worked

Run actionlint in the project folder. It checks the workflow's syntax, the expressions such as ${{ steps.upload.outputs.url }} and the permissions:

Bash
actionlint
echo "actionlint exit code: $?"

No output and exit code 0 mean it found nothing wrong. If you have not installed actionlint, /tutorials/github-actions-first-workflow shows how to download a release.

Step 7 · Keep fork pull requests away from your secrets

This is the part to get right before you merge the workflow. Anyone on GitHub can fork a public repository and open a pull request. The code in that pull request is theirs, and a preview job runs it: npm ci runs install scripts from package.json, and the smoke test runs smoke.mjs. Whatever secrets the job holds, that code can read and send anywhere.

GitHub protects you by default with the pull_request event: runs for pull requests from forks get no repository or environment secrets and a read-only token. Your job would simply fail at the Cloudflare step. The head.repo.full_name == github.repository condition turns that failure into a clean skip. Dependabot's pull requests are treated the same way: their runs only get Dependabot secrets, so the github.event.pull_request.user.login condition skips them too. It checks who opened the pull request, not who triggered this run (github.actor): when a maintainer pushes to, reopens or closes a Dependabot pull request, the actor is the maintainer, and an actor check would let that pull request's code run with your Cloudflare secrets.

The danger comes from working around that protection. Never do either of these to make previews work for forks:

  • Switch the trigger to pull_request_target. It runs in the context of your repository, with secrets and a write token, and if the job checks out the pull request's code and runs it, a stranger's code runs with your Cloudflare token. Note that pull_request_target is not on its own a mistake, only when it builds or runs the pull request's code.
  • Copy the Cloudflare token into repository secrets and pass it to a workflow_run job that builds the fork's code. Same result, one hop later.

If you want previews for outside contributors, have a maintainer read the change first and then push it to a branch in your own repository, where this workflow runs as normal.

Two more facts to keep in mind. Preview URLs are public by default: anyone with the link can open them, so the test database must hold only made-up data, never a copy of production. Cloudflare Access can require a sign-in for previews if that is not acceptable; the smoke test then needs an Access service token to get in. And a preview shares only what you list in the previews block: Cron Triggers and routes still belong to production.

Check it worked

Check the trigger and the conditions in your file:

Bash
grep -n "pull_request" .github/workflows/preview.yml
grep -c "head.repo.full_name == github.repository" .github/workflows/preview.yml

The first command shows pull_request: and the github.event.pull_request expressions, and no pull_request_target. The second prints 2: both jobs carry the fork check. Later, a pull request opened from a fork shows the preview and cleanup jobs as skipped, with no Cloudflare step run.

Step 8 · Open a pull request and watch the preview

Commit the project on main and push it. Then make a change on a branch and open a pull request:

Bash
git add .
git commit -q -m "Add notes Worker, smoke test and preview workflow"
git log --oneline | head -n 1
Bash
git remote add origin git@github.com:your-org/your-repo.git
git push -u origin main
git switch -c try-preview
sed -i.bak 's/Team notes/Team notes (draft)/' src/index.js smoke.mjs && rm src/index.js.bak smoke.mjs.bak
git commit -am "Rename the page heading"
git push -u origin try-preview
gh pr create --fill

The heading change goes into both the Worker and the smoke test in the same commit, which is how it would be in practice: a change and the test that covers it travel together.

Open the pull request. Within a couple of minutes the PR preview check turns green and a comment appears with the preview URL and Smoke test: success. Open the link on your phone as well as your laptop: reviewers often do, and it is the quickest way to catch a layout that breaks on a small screen or a slow mobile connection.

Push another commit to the same branch. The comment's commit ID changes, but no second comment appears, and the URL stays the same. Then close or merge the pull request and watch the cleanup job run.

Check it worked

The preview page says preview and lists the three sample notes from the test database, while production still says production with an empty list. After the pull request is closed, the cleanup job is green and the preview URL no longer serves the page. On the Free plan a Worker can have 100 previews (500 on paid plans, checked 26 November 2026) and at the limit Cloudflare deletes "the Preview that was deployed to least recently", but deleting on close keeps you well under it.

Troubleshooting

  • The Cloudflare step fails with an authentication error: the token is missing, expired or lacks permission. Check that the job names environment: preview and that gh secret list --env preview shows both secrets.
  • Unknown command: preview or similar: the project's Wrangler is older than 4.135.0. Check npx wrangler --version and the version in package-lock.json.
  • The smoke test fails with environment is "production": the previews block is missing or misspelt, so the preview fell back to nothing. Compare it with the file above.
  • The comment step fails with Resource not accessible by integration: the job lacks pull-requests: write.
  • A pull request that adds a migration deploys, but the smoke test fails with a server error or health check failed: the shared test database still has the old schema, because this workflow never migrates it. Run the new file against it with npx wrangler d1 execute pr-preview-demo-test --remote --file migrations/<new-file>.sql before pushing the branch, then push again. If the change would break other open previews that share the database, give that branch its own database instead: Cloudflare's configuration page suggests pointing both the branch's preview binding and its migration settings at a different database.
  • The cleanup job shows a warning that it could not delete the preview: there was no preview for that pull request, or the token no longer works. Check the Wrangler output in the step log to tell which.

Step 9 · Remove the demo

Delete everything this tutorial created on Cloudflare when you no longer need it. These commands cannot be undone; check that the names are this demo's before you run them:

Bash
REPO=your-org/your-repo  # replace this
npx wrangler delete pr-preview-demo
npx wrangler d1 delete pr-preview-demo
npx wrangler d1 delete pr-preview-demo-test
gh api --method DELETE "repos/$REPO/environments/preview"

Then revoke the API token on the Cloudflare dashboard's API Tokens page, and delete the local folder with rm -rf ~/pr-preview-demo.

Check it worked

npx wrangler d1 list no longer shows either database, the production URL returns an error, and the repository's Environments settings no longer list preview.

Next steps

  • Deploy main to production from GitHub Actions once the preview has passed: /tutorials/deploy-a-cloudflare-worker-from-github-actions.
  • Put a named approver in front of production deploys: /tutorials/require-approval-before-production-deploys-with-github-environments.
  • Grow the smoke test into a proper end-to-end suite: /tutorials/write-end-to-end-browser-tests-with-playwright.
  • Compare the same idea on another platform: /tutorials/promote-and-roll-back-vercel-deployments.

Need this done for you?

Padding does this work for growing companies, from the first diagnosis to a system that keeps working.

Platform Engineering

Get new tutorials

New tutorials, about twice a month.