Skip to content

Commit 2d4e93d

Browse files
authored
Merge pull request #364 from Adamkillander96/fix/runtimeConfigPublic
fix(): useRuntimeConfig should use the .public property
2 parents 4525471 + 89149e6 commit 2d4e93d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/runtime/plugin.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { StoryblokVue, apiPlugin } from "@storyblok/vue";
22
import { defineNuxtPlugin, useRuntimeConfig } from "#app";
33

44
export default defineNuxtPlugin(({ vueApp }) => {
5-
let { storyblok } = useRuntimeConfig();
5+
let { storyblok } = useRuntimeConfig().public;
66
storyblok = JSON.parse(JSON.stringify(storyblok));
77
vueApp.use(StoryblokVue, { ...storyblok, use: [apiPlugin] });
88
});

0 commit comments

Comments
 (0)