Skip to content

Commit

Permalink
target custom latestVersionRef to vault only
Browse files Browse the repository at this point in the history
  • Loading branch information
zchsh committed Nov 22, 2024
1 parent 846f111 commit 517d322
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/views/docs-view/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,9 @@ export function getStaticGenerationFunctions<
basePath: basePathForLoader,
enabledVersionedDocs: true,
navDataPrefix,
latestVersionRef: 'delete-me-permalink-test',
}
if (productSlugForLoader === 'vault') {
loaderOptions.latestVersionRef = 'delete-me-permalink-test'
}

// Defining a getter here so that we can pass in remarkPlugins on a per-request basis to collect headings
Expand Down

0 comments on commit 517d322

Please sign in to comment.