Rough changes to make the CadQuery integration work with the customizer

This commit is contained in:
Jeremy Wright
2021-10-07 14:46:57 -04:00
parent 32d6ef27ad
commit 0a13b7aea7
4 changed files with 20 additions and 6 deletions

View File

@@ -43,12 +43,13 @@ export const render: DefaultKernelExport['render'] = async ({
}
const blob = await response.blob()
const text = await new Response(blob).text()
const { consoleMessage } = splitGziped(text)
const { consoleMessage, customizerParams, type } = splitGziped(text)
return createHealthyResponse({
type: 'geometry',
data: await stlToGeometry(window.URL.createObjectURL(blob)),
consoleMessage,
date: new Date(),
customizerParams: customizerParams,
})
} catch (e) {
return createUnhealthyResponse(new Date())