Skip to content

Commit

Permalink
fixup! introduce in-memory mutex to avoid race condition issues in pa…
Browse files Browse the repository at this point in the history
…rallel worker runs

format code
  • Loading branch information
dario-piotrowicz committed Jul 4, 2024
1 parent 027042f commit 0ba6498
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/next-on-pages/templates/_worker.js/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ export default {
__BUILD_METADATA__,
);
} catch (e) {
const errorMessage = e instanceof Error ? e.message : JSON.stringify(e);
const errorMessage =
e instanceof Error ? e.message : JSON.stringify(e);
response = new Response(
`An internal server error occurred when handling the request: ${errorMessage}`,
{ status: 500 },
Expand Down

0 comments on commit 0ba6498

Please sign in to comment.