Skip to content

Commit

Permalink
Merge pull request #364 from Adamkillander96/fix/runtimeConfigPublic
Browse files Browse the repository at this point in the history
fix(): useRuntimeConfig should use the .public property
  • Loading branch information
Dawntraoz committed Apr 19, 2023
2 parents 4525471 + 89149e6 commit 2d4e93d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/runtime/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { StoryblokVue, apiPlugin } from "@storyblok/vue";
import { defineNuxtPlugin, useRuntimeConfig } from "#app";

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

0 comments on commit 2d4e93d

Please sign in to comment.