Skip to content

Commit 1bbb0ab

Browse files
committed
resolve links to url in getStoryData
1 parent dca3403 commit 1bbb0ab

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

utilities/data/getStoryData.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import { getStoryblokApi } from '@/utilities/storyblok';
88
/**
99
* Get the data out of the Storyblok API for the page.
1010
*/
11-
export const getStoryData = async ({
12-
path,
11+
export const getStoryData = async ({
12+
path,
1313
isEditor = false,
1414
}: getStoryDataProps): Promise<ISbResult | { data: 404 }> => {
1515
const storyblokApi = getStoryblokApi();
@@ -19,6 +19,7 @@ export const getStoryData = async ({
1919
version: isProd && !isEditor ? 'published' : 'draft',
2020
cv: isEditor ? Date.now() : undefined,
2121
resolve_relations: resolveRelations,
22+
resolve_links: 'url',
2223
token: isEditor ? process.env.STORYBLOK_PREVIEW_EDITOR_TOKEN : process.env.STORYBLOK_ACCESS_TOKEN,
2324
};
2425

0 commit comments

Comments
 (0)