feat(WEB-104): add on-demand revalidation for cache

This commit is contained in:
Simon Emanuelsson
2024-02-21 08:04:03 +01:00
parent d1d20ce555
commit f6f4e6edb4
11 changed files with 104 additions and 23 deletions

View File

@@ -30,13 +30,7 @@ export default async function CurrentPreviewPage({
throw new Error("Not found")
}
return (
<ContentPage
data={response.data}
uri={searchParams.uri}
lang={params.lang}
/>
)
return <ContentPage data={response.data} />
} catch (error) {
// TODO: throw 500
console.error(error)