Skip to content

Commit

Permalink
fix: parse JSON content
Browse files Browse the repository at this point in the history
  • Loading branch information
darlanalves authored May 20, 2024
1 parent 4cdba99 commit 05be8b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,15 @@ async function onCompile(path, response) {
toJSON({
error: String(error),
source: error.source,
json: output.json,
json: JSON.parse(output.json),
}),
);
return;
}

await savePresetAssets(path, output);
log('Finished in ' + (Date.now() - start) + 'ms');
response.end(toJSON({ json: output.json }));
response.end(toJSON({ json: JSON.parse(output.json) }));
}

async function onGenerate(input, response) {
Expand Down

0 comments on commit 05be8b2

Please sign in to comment.