Cloud

Migrating NetworkTCPIP from Wix to Cloudflare Pages and GitHub

How I migrated NetworkTCPIP from Wix to Cloudflare Pages and GitHub, preserved legacy article links, and verified the production deployment.

· 4 min read

Overview

I wanted to keep the NetworkTCPIP article library and the links readers had used for years while moving to a publishing workflow I could test and repeat. The migration started with a GitHub repository connected to Cloudflare Pages. GitHub holds the source and its history. Cloudflare Pages builds the production branch and serves the Astro output at networktcpip.com.

This article walks through the deployment pipeline, the live network topology, and the checks I used to verify the move.

1. Deployment Architecture

I connected the site’s GitHub repository to Cloudflare Pages and selected the production branch. I kept automatic production deployments disabled during the rollout. When I was ready to release, I triggered a Pages Deploy Hook. Cloudflare fetched the configured branch, ran the build, and published the output. I compared the deployed commit with the commit I intended to release.

networktcpip deployment

Figure 1. GitHub supplies the source, Cloudflare Pages builds it, and the Cloudflare edge serves the production site.

Pages setting

Value

Source

GitHub production branch

Build command

npm run build

Build output

dist

Root directory

Repository root

Production trigger

Pages Deploy Hook

I used branches and pull requests to review changes in GitHub. Git worktrees gave me separate directories for testing specific commits without switching the branch in my main project folder. A local build caught build errors early. The Cloudflare deployment record was where I verified the production revision.

2. Public Pages, Access, and Worker Traffic

Cloudflare Pages serves the homepage and article library. Cloudflare Access protects the staging hostname, the Pages preview addresses, the production Admin Center, and the CMS Worker’s workers.dev address through separate policies. An unauthenticated request to staging returned a redirect to the Access sign-in page.

live topology

Figure 2. Public Pages traffic, Access-protected destinations, and the Newsletter Worker follow distinct paths.

The CMS Worker handles privileged publishing operations against GitHub. The Newsletter Worker handles subscriptions and campaign delivery. For a public subscription, the Worker validates the Turnstile token, records the subscription request in the database, and sends a confirmation through the email delivery system when needed. The site also uses an authentication service for member sign-in, and the database stores discussion data.

3. Migrating Wix Content and Preserving Links

I used the Wix APIs and PowerShell to export 38 articles and retain the raw JSON. During conversion, that export was my reference for publication dates, categories, and rich content. I downloaded the media separately and checked the references in the converted articles. That check found 687 unique media references and zero missing files.

The Astro build produced a Cloudflare Pages _redirects file with 76 legacy rules. These rules map old Wix article paths to their new locations. A separate zone redirect sends www requests to the primary hostname while keeping the path and query string.

4. Verification

Verify a legacy article redirect

curl.exe -sS -I "https://networktcpip.com/post/rocev2-ecn-cnp-deep-dive"

The old address returned 301 with the new article URL in Location. Requesting that new URL returned 200 OK.

Verify staging isolation and the production build

Check

Observed result

Production homepage

HTTP 200

Staging without a session

HTTP 302 to Cloudflare Access sign-in

Local Astro production build

58 pages and 76 legacy redirect rules generated

5. How I Used ChatGPT

I used ChatGPT to prepare migration commands, review terminal and SQL output, draft code changes, and keep the test and backup steps in one place. I ran the commands against the environments I controlled and reviewed the results before moving to production.

  • Migration: We compared Wix export counts and checked the downloaded media references against the converted article files.

  • Troubleshooting: When the newsletter panel returned a role-check error, I shared the actual error and the account role shown in the admin panel. That helped narrow the investigation to the Worker’s role-check request.

  • Email verification: ChatGPT helped build a branded announcement template. I sent a test message and verified the logo, button, and unsubscribe link in Gmail before approving the announcement.

  • Operations: We documented a manual Cloudflare API backup and verified a Git bundle and a database archive.

Key Takeaways

  • Keep the raw export and make an inventory of existing URLs before changing hosts.

  • Verify the production commit in Cloudflare Pages after triggering a release.

  • Test old article URLs and protected staging URLs from a session without administrative access.

  • Verify an email in a real inbox before approving a campaign.

Cloudflare Pages · GitHub · Astro · Wix Migration · Cloudflare Access