We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dca3403 commit 1bbb0abCopy full SHA for 1bbb0ab
utilities/data/getStoryData.ts
@@ -8,8 +8,8 @@ import { getStoryblokApi } from '@/utilities/storyblok';
8
/**
9
* Get the data out of the Storyblok API for the page.
10
*/
11
-export const getStoryData = async ({
12
- path,
+export const getStoryData = async ({
+ path,
13
isEditor = false,
14
}: getStoryDataProps): Promise<ISbResult | { data: 404 }> => {
15
const storyblokApi = getStoryblokApi();
@@ -19,6 +19,7 @@ export const getStoryData = async ({
19
version: isProd && !isEditor ? 'published' : 'draft',
20
cv: isEditor ? Date.now() : undefined,
21
resolve_relations: resolveRelations,
22
+ resolve_links: 'url',
23
token: isEditor ? process.env.STORYBLOK_PREVIEW_EDITOR_TOKEN : process.env.STORYBLOK_ACCESS_TOKEN,
24
};
25
0 commit comments