UNPKG

@kodbruket/vsf-mapping-fallback

Version:

Mapping Fallback loader for Vue Storefront

17 lines 540 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.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