DEV Community

Discussion on: How to Create a TypeScript Project with ExpressJS the Simplest Way!! By SilvenLEAF

Collapse
 
ziroby profile image
Ron Ziroby Romero

I think you wanted the context line to read:

app.listen(PORT, ()=>{
Enter fullscreen mode Exit fullscreen mode

That way it will use the PORT env var if it's set.

Collapse
 
silvenleaf profile image
SilvenLEAF • Edited

Thank you so much!