whatsapp-cloud-api icon indicating copy to clipboard operation
whatsapp-cloud-api copied to clipboard

Read express port from environment

Open tawn33y opened this issue 2 years ago • 2 comments

From #19

Add functionality to read the server port from process.env

Suggested change from #19:

// startExpressServer.js line 100

// change
const port = options?.port || 3000;

// to
const port = options?.port || process.env.PORT || 3000;

tawn33y avatar Sep 08 '22 18:09 tawn33y

This looks trivial to support, can I do this??

TEMHITHORPHE avatar Jul 12 '23 14:07 TEMHITHORPHE

Definitely! 😊

tawn33y avatar Jul 17 '23 05:07 tawn33y