Skip to content

Commit

Permalink
Bump getPublishedContentByUrl cache to fix a recent issue with the Gi…
Browse files Browse the repository at this point in the history
…tBook API (#2414)
  • Loading branch information
emmerich authored Aug 1, 2024
1 parent 373a1e0 commit d7ec2b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/gitbook/e2e/pages.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -403,11 +403,11 @@ const testCases: TestsCase[] = [
},
{
name: 'Share links',
baseUrl: 'https://gitbook.gitbook.io/test-share-links/',
baseUrl: 'https://gitbook.gitbook.io/gbo-tests-share-links/',
tests: [
{
name: 'Valid link',
url: 'Fc6mMII9FKgnwm7qqynx/',
url: 'TGs8PkF4GWVtbmPnWhYL/',
run: waitForCookiesDialog,
},
{
Expand Down
2 changes: 1 addition & 1 deletion packages/gitbook/src/lib/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export const getSyncedBlockContent = cache(
* Resolve a URL to the content to render.
*/
export const getPublishedContentByUrl = cache(
'api.getPublishedContentByUrl.v2',
'api.getPublishedContentByUrl.v3',
async (url: string, visitorAuthToken: string | undefined, options: CacheFunctionOptions) => {
const parsedURL = new URL(url);

Expand Down

0 comments on commit d7ec2b5

Please sign in to comment.