Skip to content

Commit

Permalink
fix: object is not extensible when using apiOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjoverm committed Sep 7, 2022
1 parent 7656450 commit 936acf6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/src/runtime/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { StoryblokVue, apiPlugin } from "@storyblok/vue";
import { defineNuxtPlugin, useRuntimeConfig } from "#app";

export default defineNuxtPlugin(({ vueApp }) => {
const { storyblok } = useRuntimeConfig();
let { storyblok } = useRuntimeConfig();
storyblok = JSON.parse(JSON.stringify(storyblok));
vueApp.use(StoryblokVue, { ...storyblok, use: [apiPlugin] });
});

0 comments on commit 936acf6

Please sign in to comment.