Cannot access chat emulator when external url is set

Hi, I set externalUrl in botpress.config.json. I can access the server, edit my bots, etc.
But when I try to open http://externalUrl:3000/s/botname to test the bot, I got redirected to: lite/botname/?m=channel-web&v=Fullscreen&options=%7B"hideWidget"%3Atrue%2C"config"%3A%7B"enableReset"%3Atrue%2C"enableTranscriptDownload"%3Atrue%7D%7D and the site cannot be reached (ERR_CONNECTION_REFUSED).

Any ideas?

@vabatista The external URL is used in many locations to build links and redirections. Therefore, it should include the port.

EXTERNAL_URL=http://localhost:3000

Thanks!

That was exactly the problem!