fix clipboard on safari

This commit is contained in:
Xavi Alfaro
2024-04-09 23:43:54 -05:00
parent e88e4e886d
commit 5009391f4a
5 changed files with 66 additions and 44 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ export const POST = async ({ request }: RequestEvent) => {
{ componentName: name }
);
return json(jsCode, { status: 200 });
return json({ data: jsCode }, { status: 200 });
} catch (error) {
return json(
{ error: `Error al transformar el SVG a componente React: ${error}` },