Skip to content

Commit

Permalink
Merge branch 'main' into chore/fastify/testing
Browse files Browse the repository at this point in the history
* main:
  rewrite(gatsby-plugin-fastify): move frome callbacks to async/await (#87)
  • Loading branch information
moonmeister committed Oct 9, 2021
2 parents 6390507 + 5529aad commit 367e9c8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/wicked-llamas-sell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"gatsby-plugin-fastify": patch
---

Update main server execution to use async/await from callbacks
2 changes: 1 addition & 1 deletion packages/gatsby-plugin-fastify/src/serve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export async function gatsbyServer() {

if (openBrowser) open(listeningOn);
} catch (err) {
console.error("Failed to start Fastify err");
console.error("Failed to start Fastify", err);
process.exit(1);
}

Expand Down

0 comments on commit 367e9c8

Please sign in to comment.