How to use storyblok-js-client - 6 common examples

To help you get started, we’ve selected a few storyblok-js-client examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github storyblok / nextjs-multilanguage-website / utils / storyblok-service.js View on Github external
constructor() {
    this.devMode = false // Always loads draft
    this.token = 'qvOwrwasP7686hfwBsTumAtt'
    this.client = new StoryblokClient({
      accessToken: this.token,
      cache: {
        clear: 'auto',
        type: 'memory'
      }
    });

    this.query = {}
  }
github storyblok / nextjs-multilanguage-website / utils / StoryblokService.js View on Github external
constructor() {
    this.devMode = false // Always loads draft
    this.token = 'qvOwrwasP7686hfwBsTumAtt'
    this.client = new StoryblokClient({
      accessToken: this.token,
      cache: {
        clear: 'auto',
        type: 'memory'
      }
    })

    this.query = {}
  }
github storyblok / react-next-boilerplate / utils / StoryblokService.js View on Github external
constructor() {
    this.devMode = false // If true it always loads draft
    this.token = 'vIxSxIvAUpbqD8V7NrciPAtt'
    this.client = new StoryblokClient({
      accessToken: this.token,
      cache: {
        clear: 'auto',
        type: 'memory'
      }
    })

    this.query = {}
  }
github storyblok / storyblok-nuxt / lib / templates / plugin.js View on Github external
install () {
    if (!Vue.prototype.$storyapi) {
      Vue.prototype.$storyapi = new StoryblokClient({
        accessToken: '<%= options.accessToken %>',
        cache: {
          clear: 'auto',
          type: '<%= options.cacheProvider %>'
        }
      })
    }
  }
}
github storyblok / gridsome-source-storyblok / gridsome.client.js View on Github external
install () {
      if (!Vue.prototype.$storyapi) {
        Vue.prototype.$storyapi = new StoryblokClient(options.client)
      }
    }
  }

storyblok-js-client

Universal JavaScript SDK for Storyblok's API

MIT
Latest version published 2 days ago

Package Health Score

86 / 100
Full package analysis

Popular storyblok-js-client functions