refactor: fieldGroupName => __typename
All checks were successful
Deploy WordPress and Nuxt / deploy (push) Successful in 58s

This commit is contained in:
2025-09-25 15:30:10 -04:00
parent ed479312fa
commit e041408715
6 changed files with 89 additions and 21 deletions

View File

@@ -6,11 +6,8 @@ export default defineEventHandler(async (event) => {
try {
const section = await readBody<TheSectionFragment>(event);
const { component, attrs } = useSection(section);
const app = createSSRApp({
render() {
return h(component, attrs);
},
});
// @ts-expect-error Properties from TheSectionFragment
const app = createSSRApp({ render: () => h(component, attrs) });
const html = await renderToString(app);
return html;
}