Repository navigation
Migrate José Rizal site to Cloudflare Pages - #2
Merged
Merged
Conversation
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.
The current public site requires a FastAPI API, PostgreSQL, an uploaded-media volume, an admin UI, and several management containers even though visitors only read a small, stable collection of pages. This migration exports the complete live content into Git-managed Markdown and YAML and builds the existing Vue frontend as a static Cloudflare Pages application.
Content remains straightforward for developers to maintain:
The obsolete backend, database deployment, admin/login UI, upload API, Docker/nginx files, and their documentation are removed. Dependencies and Node are pinned to current stable releases, and CI validates every pull request.
Production-parity evidence
All 10 public routes were compared with the live production site: the home page, five article pages, two city pages, About Us, and Games.
main./static/uploads/...URLs so the old API can be retired.The generated
index.htmland JavaScript bundles are intentionally not byte-for-byte equal to production: rebuilding the application changes hashed bundle filenames, and content now comes from a static JSON file instead of the API. The rendered public website is equivalent as established above.Validation
npm cinpm run check(content validation and Vite production build)npm audit --audit-level=high(0 vulnerabilities)This PR prepares the application for Cloudflare Pages. It does not change the live VM, DNS, or reverse proxy; that cutover can be verified separately after review and merge.