@livecms/nuxt-live-edit
v1.3.0
Published
Live content edit
Downloads
4
Readme
@livecms/nuxt-live-edit
Live content edit. Nuxt3 ready
Setup
- Add
@livecms/nuxt-live-edit
dependency to your project
yarn add @livecms/nuxt-live-edit # or npm install @livecms/nuxt-live-edit
- Add
@livecms/nuxt-live-edit
to themodules
section ofnuxt.config.js
{
modules: [
'@livecms/nuxt-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 />
toapp.vue
Fetch texts in
app.vue
setup
<script setup>
await useLiveEdit().fetchTexts();
</script>
Development
- Clone this repository
- Install dependencies using
yarn install
ornpm install
- Start development playground using
yarn dev
License
Copyright (c) David Veselý [email protected]