Publish to Cloudflare storage instead of the blog repository

Aperta
#16 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
12/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
cloud
Ambito
backend, cloud

Direzione di ricerca

This is a tracking epic, so start with the linked design issue #22, which decides where published posts live and what a stored post contains. The current git publish path writes to src/posts/<slug>.svx in the blog repo, and the new target has to sit beside it behind a shared interface (#17). Done means the stored-post schema is agreed and each child issue is complete. Pick up a child issue only after #22 is settled.

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

Descrizione

Today Publish renders posts to src/posts/<slug>.svx in the blog's git repository, commits, pushes, and waits for Cloudflare Workers Builds to deploy. The published articles therefore live inside the blog repo, and every edit costs a build.

Direction: the CMS is the only thing that holds content. Publish writes the published posts to Cloudflare storage that the blog's Worker reads at request time. The blog repo holds code only; a published edit is live without a rebuild, and the Worker can cache, paginate, search and optimise from the store.

Primary target is a SvelteKit blog on Cloudflare Workers. The store contract should stay plain (a binding and a documented schema) so other frameworks can read it later.

Git publishing stays as a supported target; this adds a second one and makes it the recommended path.

Plan

The first is a design decision that unblocks the rest.

  • #22 Design: where published posts live, and what a stored post contains
  • #17 Publish: a target interface, with git as the first implementation
  • #18 Publish: Cloudflare storage target
  • #19 Blog side: a Worker reader for SvelteKit and an example app
  • #20 Publish: a published edit is live without a deploy
  • #21 Publish: one-time import of git-published posts into the store

Acceptance criteria

  • A post published from the CMS is readable by the blog's Worker with no git commit and no rebuild.
  • Unpublishing removes it from the store.
  • The git target still works unchanged.
  • README documents both targets and when to use which.
Lingua principale
HTML
Stelle
0
Fork
0
Merge medio
1m
PR unite (30g)
2

Preparare l'ambiente

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 mrgnw/cfcms

Tutte le issue di mrgnw/cfcms

Issue simili

Altre issue su Backend & API Design

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.