Skip to content

Commit

Permalink
fix: album preview
Browse files Browse the repository at this point in the history
  • Loading branch information
lihbr committed Aug 29, 2024
1 parent 2ae9dca commit b6c70fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/functions/preview/prismicPreview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export async function resolve(event: HandlerEvent): Promise<HandlerResponse | nu
defaultURL: "/",
})

if (href.startsWith("/private")) {
if (href.startsWith("/private") || href.startsWith("/albums")) {
href = `${href}-${await sha256(href.split("/").pop()!, process.env.PRISMIC_TOKEN!, 7)}`
}

Expand Down

0 comments on commit b6c70fe

Please sign in to comment.