Closed eroncastro closed 3 years ago
Try to specify externalUrl in httpServer of botpress.config.json.
{ "$schema": "../botpress.config.schema.json", "httpServer": { "host": "localhost", "externalUrl": "http://localhost:3000/bot", "port": 3000,
...
config.host could be equal to externaUrl. Notice please, that it may require change of some paths inside project. Also it may cause a lot of bugs related to incorrect path. It's better to use subdomain instead.
You may get more info there https://botpress.io/docs/advanced/configuration
As @demogoran said, you simply need to update the externalUrl to serve a custom path. You can even put multiple folders down (eg: externalUrl: 'http://localhost:3000/my/bots
).
Out of the box, it should work without issues. If you encounter some, please share them with us
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Describe the bug When I change the url path in which my application will be running, I want it to be able to also server assets from that path.
In my case, I am having trouble with assets/modules/channel-web/inject.js It uses config.host, and I would like it to use config.host + '/bot'.