cffy.in/GEMINI.md
Coffee In 74388a1669 feat: Implement monorepo-like structure and Cloudflare Pages deployment
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.
2025-12-13 10:32:40 +00:00

16 lines
810 B
Markdown

# 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 deploy` error: "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.js` to manage builds, inject a standard Navigation Bar, and generate static redirects.
- Updated `wrangler.jsonc` and `package.json` for Cloudflare Pages deployment.
- Successfully deployed to `https://cffyin.pages.dev` (and alias `master.cffyin.pages.dev`).