feat(WEB-104): add on-demand revalidation for cache
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user