dynamically render scratch pages (#688)

This commit is contained in:
Alex Bates
2023-02-23 00:36:14 +00:00
committed by GitHub
parent 316265befb
commit e03b357405

View File

@@ -1,6 +1,9 @@
import getScratchDetails from "./getScratchDetails"
import ScratchEditor from "./ScratchEditor"
// Always server side render, avoiding caching scratch details
export const dynamic = "force-dynamic"
export default async function Page({ params }: { params: { slug: string }}) {
const { scratch, parentScratch, compilation } = await getScratchDetails(params.slug)