@livecms/nuxt-live-edit
TypeScript icon, indicating that this package has built-in type declarations

1.7.0 • Public • Published

@livecms/nuxt-live-edit

npm version npm downloads License

Live content edit. Nuxt3 ready

📖 Release Notes

Setup

  1. Add @livecms/nuxt-live-edit dependency to your project
yarn add @livecms/nuxt-live-edit # or npm install @livecms/nuxt-live-edit
  1. Add @livecms/nuxt-live-edit to the modules section of nuxt.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
  },
}
  1. Add <live-edit /> to app.vue

  2. Fetch texts in app.vue setup

<script setup>
await useLiveEdit().fetchTexts();
</script>

Development

  1. Clone this repository
  2. Install dependencies using yarn install or npm install
  3. Start development playground using yarn dev

License

MIT License

Copyright (c) David Veselý jsem@davidvesely.cz

Readme

Keywords

none

Package Sidebar

Install

npm i @livecms/nuxt-live-edit

Weekly Downloads

121

Version

1.7.0

License

MIT

Unpacked Size

52.3 kB

Total Files

27

Last publish

Collaborators

  • vesely