Skip to content

Commit 5e9077d

Browse files
committed
Modified live-preview extensions
1 parent 828f6e7 commit 5e9077d

1 file changed

Lines changed: 18 additions & 2 deletions

File tree

  • extensions/cms-live-preview/6.0.x/extensions/livePreview

extensions/cms-live-preview/6.0.x/extensions/livePreview/README.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,24 @@ To install the extension run the following command inside your Webiny project:
1010
yarn webiny extension cms-live-preview
1111
```
1212

13-
Once installed make sure to configure your NextJs/NuxtJs/Angular frontend app to render the pages. To get started clone our reference nextjs app from here: https://github.com/webiny/learn-webiny-nextjs-app/tree/live-preview-ext
14-
Install the dependencies and run the dev server (`yarn dev`)
13+
When installed, you must redeploy your API so the new content model gets registered with the system.
14+
```shell
15+
yarn webiny deploy api
16+
```
17+
18+
Once deployed make sure to configure your NextJs/NuxtJs/Angular frontend app to render the pages. To get started clone our reference nextjs app from here: https://github.com/webiny/learn-webiny-nextjs-app/tree/live-preview-ext
19+
```shell
20+
git clone git@github.com:webiny/learn-webiny-nextjs-app.git
21+
git checkout live-preview-ext
22+
yarn
23+
```
24+
25+
Once installed, make sure to configure the required .env variables
26+
```shell
27+
cp .env.local.example .env.local
28+
```
29+
30+
Then edit and provide the actual values for the variables.
1531

1632

1733
![Live Preview Demo](./screenshot.png)

0 commit comments

Comments
 (0)