Skip to content

Commit 658356a

Browse files
committed
resolve link = url for getStoryData; update storyblok packages
1 parent 6b5d053 commit 658356a

File tree

3 files changed

+16
-21
lines changed

3 files changed

+16
-21
lines changed

package-lock.json

Lines changed: 13 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"@heroicons/react": "^2.2.0",
3737
"@netlify/functions": "^3.0.4",
3838
"@next/third-parties": "^15.2.4",
39-
"@storyblok/react": "^4.7.0",
39+
"@storyblok/react": "^5.0.0",
4040
"algoliasearch": "^5.23.0",
4141
"cnbuilder": "^3.1.0",
4242
"cookies-next": "^5.1.0",
@@ -45,7 +45,7 @@
4545
"react-instantsearch": "^7.15.7",
4646
"sa11y": "^4.1.2",
4747
"slick-carousel": "^1.8.1",
48-
"storyblok-js-client": "^6.11.0",
48+
"storyblok-js-client": "^7.0.0",
4949
"storyblok-rich-text-react-renderer": "^3.0.1",
5050
"usehooks-ts": "^3.1.1"
5151
},

utilities/data/getStoryData.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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)