Maison Retail Management moves Mike's frontend onto Cloudflare's edge

This fork now ships its user-facing app to Cloudflare Workers, the same edge network that puts your app close to wherever your users sit.

infrastructuresecurity

The team wired Mike's web frontend to run on Cloudflare Workers using OpenNext, an adapter that lets a modern Next.js app deploy onto Cloudflare's globally distributed network instead of a traditional single server. They sorted the usual snags too: static files get aggressive caching, local development mirrors production, and the build-time settings the app needs to talk to Supabase (the hosted database and login service behind the fork) are now baked in correctly so deployments don't break.

One thing worth knowing if you're eyeing this as a template: the team committed Supabase's publishable key straight into the repository to make the build work. It's a key designed to be visible to browsers rather than a secret, but it does sit in the open code now.

So what Worth a look for anyone planning to self-host this fork or weighing edge deployment for their own legal-AI frontend.

View this fork on GitHub →

Spotted something wrong? Or know the PR text has fresher detail than the writeup above?

Commits in this thread

2 commits from Maison-Retail-Management-International/mike, oldest first. Source extracted verbatim from the harvested git log.

SHA Subject Author Date
d0bc47d8 Add Cloudflare Worker config for OpenNext frontend Thomas GUILLEMAUD 2026-05-20 ↗ GitHub
832b64ce Fix Cloudflare CI build env for Supabase at build time. Thomas GUILLEMAUD 2026-05-20 ↗ GitHub
commit body
Add committed .env.production with NEXT_PUBLIC_* vars, remove tracked
.dev.vars, and extend wrangler.jsonc vars so next build no longer fails
with "supabaseUrl is required" in Workers Builds.

Co-authored-by: Cursor <cursoragent@cursor.com>

Capture this thread into my fork

Download a single Markdown prompt that tells Claude how to port every commit above into your working tree — adapting paths and structure to match your repo. Run it via claude -p < capture-thread-559.md from inside the repo you want the changes in.

⬇ Download capture-thread-559.md