Refactor the project to support multiple applications, centralized build process,
and deployment to Cloudflare Pages.
- **Restructuring:**
- Moved static HTML pages (game.html, german.html) and the SnapMark React app source into .
- Moved the main landing page (index.html) into .
- Consolidated output to a directory.
- **Build System:**
- Created to automate:
- Building Vite-based apps (e.g., SnapMark).
- Processing static HTML apps (injecting dynamic navigation).
- Generating static client-side redirects for old URLs (/game.html -> /hexarow/).
- **Navigation:**
- Implemented a dynamic navigation bar across all pages.
- **Deployment:**
- Removed Durable Objects and worker-specific configurations.
- Configured and for Cloudflare Pages deployment.
- Updated
> cffy.in@0.0.1 deploy
> wrangler pages deploy dist --project-name cffyin
⛅️ wrangler 4.54.0
───────────────────
Uploading... (7/7)
✨ Success! Uploaded 0 files (7 already uploaded) (0.34 sec)
🌎 Deploying...
✨ Deployment complete! Take a peek over at https://a00cadbf.cffyin.pages.dev
✨ Deployment alias URL: https://master.cffyin.pages.dev to target the Cloudflare Pages project.
810 B
810 B
Project Context
This app has been modified to be on the skeleton of a cloudflare app so it can be deployed on cloudflare.
Status
- Fixed
wrangler deployerror: "Worker written as a service-worker". - Removed Durable Objects and Workers logic to convert to a Static Cloudflare Pages site.
- Restructured project:
src/apps/: Contains all sub-applications (hexarow, german-trainer, snapmark).src/landing/: Contains the main landing page.dist/: Generated build output served by Cloudflare.
- Created
scripts/build.jsto manage builds, inject a standard Navigation Bar, and generate static redirects. - Updated
wrangler.jsoncandpackage.jsonfor Cloudflare Pages deployment. - Successfully deployed to
https://cffyin.pages.dev(and aliasmaster.cffyin.pages.dev).