serverless-appsync-simulator icon indicating copy to clipboard operation
serverless-appsync-simulator copied to clipboard

fix: convert port to number type

Open hiramatsutaku opened this issue 2 years ago • 0 comments

When using multiple APIs, port is incremented.(See: https://github.com/serverless-appsync/serverless-appsync-simulator/pull/92) However, when I specified port from the environment variable, it became a string and could not be incremented, resulting in the following error.

❯ APPSYNC_PORT=20004 npx sls offline start
AppSync Simulator: Error: Port 2000410 is already in use. Please kill the program using this port and restart Mock
...

So, I fixed this even if port/wsPort is specified from an environment variable.

hiramatsutaku avatar Apr 24 '23 11:04 hiramatsutaku