Connect all 27 source layouts to parameterized Studio pages and shared design storage
studio CI and deployment / verify-and-deploy (push) Successful in 5m55s
waterfall-wiki CI and deployment / verify-and-deploy (push) Failing after 18m23s

This commit is contained in:
2026-10-27 14:51:17 +08:00
parent 00e1b70398
commit 94932418ca
28 changed files with 374 additions and 4 deletions
+6
View File
@@ -0,0 +1,6 @@
import type {GetStaticPaths,GetStaticProps} from 'next';
import {LayoutWorkbench} from '../../components/LayoutWorkbench';
import layouts from '../../content/templates/layouts.json';
export default function LayoutPage({id}:{id:string}){return <LayoutWorkbench layoutId={id}/>}
export const getStaticPaths:GetStaticPaths=async()=>({paths:layouts.map(l=>({params:{id:l.id}})),fallback:false});
export const getStaticProps:GetStaticProps=async({params})=>layouts.some(l=>l.id===params?.id)?{props:{id:params?.id}}:{notFound:true};