Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Investigate: Migrate deployment from Netlify to Cloudflare

Aperta
#274 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
38/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
next.js, node.js
Ambito
cloud, devops, web-dev

Direzione di ricerca

Confronta le due opzioni di adapter con l’app Next.js ed esamina la configurazione di Sentry, getBlogContent() in src/utils/blogPosts.tsx, netlify.toml e @netlify/plugin-nextjs. Verifica che gli import dinamici e lo step di build Node.js generate:all funzionino, quindi realizza un deploy proof-of-concept su un branch o in un ambiente di preview e documenta le modifiche di migrazione successive.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Motivation

Netlify has sparse documentation and has proven unreliable. The site has no stateful backend (no long-running process, no in-memory state, no WebSockets) — it's a Next.js app with static generation and edge-compatible server components, making it a good fit for Cloudflare's edge runtime.

Investigation scope

Pick an adapter

Two options for running Next.js on Cloudflare:

  1. @cloudflare/next-on-pages — Cloudflare's official adapter. Compiles Next.js output to run on Cloudflare Pages (V8 isolate runtime, not Node.js). Straightforward but stricter — anything using Node-specific APIs at runtime will break.
  2. opennextjs-cloudflare (OpenNext) — Community-driven, broader Next.js compatibility, handles more Node.js edge cases. Generally more capable for complex apps.

Assess which is the better fit and document the reasoning.

Known potential pain points to investigate
  • Sentry (@sentry/nextjs) — needs Cloudflare-specific configuration; assess whether it works out of the box or requires changes
  • Dynamic imports of compiled post files — getBlogContent() in src/utils/blogPosts.tsx uses dynamic imports of .mjs files from src/generated/mdx/; verify these work in the edge runtime
  • netlify.toml / @netlify/plugin-nextjs — both go away; document what replaces them
  • Build pipeline — the generate:all step runs in Node.js at build time, so it should be unaffected; confirm this
Deliverable

A proof-of-concept deploy on a branch/preview environment, plus a follow-up issue documenting what needs to change for a full migration.

Lingua principale
MDX
Stelle
3
Fork
1
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di dwjohnston/blacksheepcode

Tutte le issue di dwjohnston/blacksheepcode

Issue simili

Altre issue su Cloud

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.