Headless enonic, but showing external URL in the preview pane

Enonic version: 7.x
OS: any

Is it possible to change how enonic renders the preview pane for admins?

I want to write a react frontend and host this using nodeJS, and I want to consume data using the APIs in enonic to build the react pages. In addition, I want the users to edit their content in enonic, and see a preview of their site using nodeJS url instead of the built-in webserver from enonic. Is this possible to do? I basically want to replace the protocol and host part of the url being used in the enonic admin ui.

Yes, it is possible - it essentially boils down to using a proxy controller.
Start by having a look at this for instance - the starter kit for NextJS will be released this year:

1 Like

Awesome! Will look into this then.