Skip to content

Astro Cloudflare Workers canary for Hypersnap.org - #46

Merged
arcabotai merged 1 commit into
mainfrom
cursor/astro-cloudflare-canary-ee9c
Sep 2, 2026
Merged

arcabotai merged 1 commit into
mainfrom
cursor/astro-cloudflare-canary-ee9c

Conversation

@felirami

@felirami felirami commented Sep 2, 2026 •

Copy link
Copy Markdown
Collaborator

Port the public Hypersnap.org site from Next.js on Vercel to an Astro static Cloudflare Workers canary. Loica owns this. Preferred stack is Astro, not OpenNext.

What this is

  • New branch off main (not cad/cloudflare-migration)
  • Astro latest stable, output: "static"
  • Wrangler 4 config named exactly hypersnap-web-canary (reuses existing Worker id 815c0690…)
  • assets.directory: "./dist", workers_dev: false, preview_urls: false
  • No @astrojs/cloudflare adapter
  • No OpenNext, no new R2/KV/D1, no hypersnap-next-cache

Static vs Worker

Static (prerendered into ./dist):

  • Marketing pages: /, /about, /network, /snap, /run-a-node, /contribute
  • Docs hub + mirrored doc pages
  • /install.sh, /llms.txt, /llms-full.txt, /sitemap.xml, /robots.txt, 404
  • Security headers via public/_headers

Worker (src/worker.ts) only for live probes:

  • GET /api/network-status — public node + known hub health (needed for mixed-content / CORS; Ardea is HTTP)
  • GET /api/snap-market — Dexscreener feed with corrected FDV
  • run_worker_first: ["/api/*"] so everything else is assets

Verify

  • GitHub Actions CI / Lint, typecheck, and build — green
  • Local npx wrangler deploy --dry-run — Worker + 166 assets, no publish
  • Browser pass on local astro preview: home, about, network, $SNAP, run-a-node, docs (intro + sidebar), contribute, custom 404, mobile nav

Expected non-blocker

Vercel Git integration still treats this repo as Next.js. Preview deploys fail with No Next.js version detected because next was removed. That is expected: production hypersnap.org stays on Vercel from main. This PR is the Cloudflare canary only. Do not delete the Vercel project.

OpenNext bridge

cad/cloudflare-migration is untouched. That OpenNext (@opennextjs/cloudflare) Worker (hypersnap-web + R2 cache) remains the temporary Next bridge only. This PR is the preferred Astro canary path.

Non-goals (not in this PR)

  • No DNS cutover for hypersnap.org
  • No Vercel delete
  • No deploy (Loica/Degu)
  • No A3Stack / Airdrop / Franchiser work

Do not merge. Do not deploy from this PR.

Open in Web Open in Cursor 

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

Replace the Next.js App Router site with Astro static output and Wrangler 4
config named hypersnap-web-canary. Keep public marketing and docs pages
prerendered; use a thin Worker only for /api/network-status and
/api/snap-market. Leave the OpenNext cad/cloudflare-migration branch
untouched and do not add new KV, R2, or D1 resources.

Co-authored-by: felirami <felirami@users.noreply.github.com>
@vercel

vercel Bot commented Sep 2, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
hypersnaporg Error Error Sep 2, 2026 2:23pm UTC

Request Review

@arcabotai
arcabotai marked this pull request as ready for review September 2, 2026 14:36
@arcabotai
arcabotai merged commit b993797 into main Sep 2, 2026
6 of 7 checks passed
@arcabotai
arcabotai deleted the cursor/astro-cloudflare-canary-ee9c branch September 2, 2026 14:36

This branch had an error being deployed

1 failed deployment
Preview — 2578ef3c Deployed Sep 2, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants