UNPKG

@kodbruket/vsf-mapping-fallback

Version:

Mapping Fallback loader for Vue Storefront

15 lines 468 B
export const forStoryblok = async ({ dispatch }, { url: fullSlug }) => { fullSlug = fullSlug || 'home'; const story = await dispatch(`storyblok/loadStory`, { fullSlug }, { root: true }); if (story) { return { name: 'storyblok', params: { // TODO: Why does this need to be here? slug: 'storyblok' } }; } return undefined; }; //# sourceMappingURL=forStoryblok.js.map