From 3fdf41584713a5fae080d3d6a6659f0a490a7ef8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mats=20T=C3=B6rnberg?= Date: Sun, 1 Nov 2026 12:08:24 +0100 Subject: [PATCH] README: /edit entry point Co-Authored-By: Claude Sonnet 5.5 --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9fbaa32..5cf2bc8 100644 --- a/README.md +++ b/README.md @@ -154,7 +154,8 @@ Part of the ecommerce monorepo as the `cms-onpageeditor` submodule. Each instanc otherwise it does nothing. - `onpage-editor.js` - the editor. -Entering/leaving edit mode: open any page with `?cms_preview=1` (sets the cookie, strips the param, reloads so the edge serves the +Entering edit mode on a deployed site: open **`/edit`** or **`/edit/`** (the edge, `deploy/nginx.conf`, sets the cookie and redirects +to the page). Entering/leaving edit mode: open any page with `?cms_preview=1` (sets the cookie, strips the param, reloads so the edge serves the live render) and `?cms_preview=0` to leave. Dev: `make dev` rebuilds both into the instance's `public/` (`npm run build:watch`, `CMS_ONPAGE_OUT`). The shared `@k6n/cms-editor` sources are found at `../backoffice/web/packages/cms-editor/src` (submodule layout), `../ecommerce/...` (standalone checkout), `.cms-editor/` (Docker) or `CMS_EDITOR_SRC`.