Repository navigation
Astro Cloudflare Workers canary for Hypersnap.org - #46
Merged
Merged
Conversation
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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
main(notcad/cloudflare-migration)output: "static"hypersnap-web-canary(reuses existing Worker id815c0690…)assets.directory: "./dist",workers_dev: false,preview_urls: false@astrojs/cloudflareadapterhypersnap-next-cacheStatic vs Worker
Static (prerendered into
./dist):/,/about,/network,/snap,/run-a-node,/contribute/install.sh,/llms.txt,/llms-full.txt,/sitemap.xml,/robots.txt, 404public/_headersWorker (
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 FDVrun_worker_first: ["/api/*"]so everything else is assetsVerify
CI / Lint, typecheck, and build— greennpx wrangler deploy --dry-run— Worker + 166 assets, no publishastro preview: home, about, network, $SNAP, run-a-node, docs (intro + sidebar), contribute, custom 404, mobile navExpected non-blocker
Vercel Git integration still treats this repo as Next.js. Preview deploys fail with
No Next.js version detectedbecausenextwas removed. That is expected: productionhypersnap.orgstays on Vercel frommain. This PR is the Cloudflare canary only. Do not delete the Vercel project.OpenNext bridge
cad/cloudflare-migrationis 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)
Do not merge. Do not deploy from this PR.
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.