generated from pascalmartineau/wp-skeleton
refactor: fieldGroupName => __typename
All checks were successful
Deploy WordPress and Nuxt / deploy (push) Successful in 58s
All checks were successful
Deploy WordPress and Nuxt / deploy (push) Successful in 58s
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user