Skip to content

Commit

Permalink
fix(apps/earth): parses port number string
Browse files Browse the repository at this point in the history
  • Loading branch information
deopea-david committed Mar 1, 2023
1 parent abd23d7 commit a5424c9
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/no-misused-promises */
/*
* WHAT IS THIS FILE?
*
Expand Down Expand Up @@ -38,10 +37,12 @@ await app

app
// Use Qwik City's page and endpoint request handler
// eslint-disable-next-line @typescript-eslint/no-misused-promises
.use(router)
// Use Qwik City's 404 handler
// eslint-disable-next-line @typescript-eslint/no-misused-promises
.use(notFound)
.listen({ port: PORT }, (error) => {
.listen({ port: parseInt(PORT) }, (error) => {
if (!error) return;
app.log.error(error);
process.exit(1);
Expand Down

0 comments on commit a5424c9

Please sign in to comment.