diff --git a/.changeset/wicked-llamas-sell.md b/.changeset/wicked-llamas-sell.md new file mode 100644 index 000000000..b8fc19edb --- /dev/null +++ b/.changeset/wicked-llamas-sell.md @@ -0,0 +1,5 @@ +--- +"gatsby-plugin-fastify": patch +--- + +Update main server execution to use async/await from callbacks diff --git a/packages/gatsby-plugin-fastify/src/serve.ts b/packages/gatsby-plugin-fastify/src/serve.ts index 953745f0f..a0368f163 100755 --- a/packages/gatsby-plugin-fastify/src/serve.ts +++ b/packages/gatsby-plugin-fastify/src/serve.ts @@ -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); }