Skip to content

Commit

Permalink
Update fastify.listen usage to non-deprecated signature
Browse files Browse the repository at this point in the history
  • Loading branch information
bsmilling committed Nov 3, 2022
1 parent 2f85c6c commit 00b2072
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/factories/createLightship.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,10 @@ export default async (userConfiguration?: ConfigurationInput): Promise<Lightship

const modeIsLocal = configuration.detectKubernetes === true && isKubernetes() === false;

await app.listen(modeIsLocal ? 0 : configuration.port, '0.0.0.0');
await app.listen({
host: '0.0.0.0',
port: modeIsLocal ? 0 : configuration.port,
});

const signalNotReady = () => {
if (serverIsReady === false) {
Expand Down

0 comments on commit 00b2072

Please sign in to comment.