From 5dcc1b2af59c5c080baaf6dca625369cac9d51ff Mon Sep 17 00:00:00 2001 From: ff Date: Tue, 26 May 2026 12:01:24 -0400 Subject: [PATCH] docs: document per-office Cloudflare env setup in README Co-Authored-By: Claude Sonnet 4.6 --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index b9f918b8..9fc8ed13 100644 --- a/README.md +++ b/README.md @@ -124,6 +124,25 @@ Copy the `.env.example` files and fill in the required values. npm run setup:env ``` +### Step 9a — Set the Cloudflare subdomain for this office + +After running `npm run setup:env`, open the two `.env` files and fill in this office's Cloudflare subdomain. + +**`apps/Frontend/.env`** +```env +VITE_CLOUDFLARE_HOST=yoursubdomain.mydentalofficemanagement.com +``` + +**`apps/Backend/.env`** +```env +CLOUDFLARE_HOST=yoursubdomain.mydentalofficemanagement.com +FRONTEND_URLS=http://localhost:3000,http://yoursubdomain.mydentalofficemanagement.com,https://yoursubdomain.mydentalofficemanagement.com +``` + +Replace `yoursubdomain` with this office's actual subdomain (e.g. `summitdentalcare`). + +> If you skip this step, Cloudflare tunnel access will not work. LAN access still works without it. + ### Step 10 — Set up the database ```sh