README: /edit entry point
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ec4212c113
commit
3fdf415847
1 file changed
+2
-1
@@ -154,7 +154,8 @@ Part of the ecommerce monorepo as the `cms-onpageeditor` submodule. Each instanc
|
|||||||
otherwise it does nothing.
|
otherwise it does nothing.
|
||||||
- `onpage-editor.js` - the editor.
|
- `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/<path>`** (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`,
|
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),
|
`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`.
|
`../ecommerce/...` (standalone checkout), `.cms-editor/` (Docker) or `CMS_EDITOR_SRC`.
|
||||||
|
|||||||
Reference in new issue
Block a user