Live content edit
- Add
@livecms/live-edit
dependency to your project
yarn add @livecms/live-edit # or npm install @livecms/live-edit
- Add
@livecms/live-edit
to themodules
section ofnuxt.config.js
{
modules: [
'@livecms/live-edit',
],
liveEdit: {
api: process.env.LIVE_EDIT_API, // https://example.livecms.cz/api or custom API
assets: process.env.LIVE_EDIT_ASSETS, // S3 storage - https://s3.eu-central-1..
imagekit: process.env.LIVE_EDIT_IMAGEKIT, // Imagekit url - https://ik.imagekit.io/something
},
}
-
Add
<live-edit />
tolayouts/default.vue
-
Fetch texts
async fetch() {
await this.$liveEdit.loadTexts();
},
- Clone this repository
- Install dependencies using
yarn install
ornpm install
- Start development server using
npm run dev
Copyright (c) David Veselý jsem@davidvesely.cz