chatbot
chatbot copied to clipboard
(EAI-203): Refactor serve static logic + add flexible app config
Jira: https://jira.mongodb.org/browse/EAI-203
Changes
- Refactor mongodb-chatbot-server
AppConfig
to acceptadditionalServerLogic
, where you can add middleware, routes, etc. - Add
additionalServerLogic
to our implementation to serve static site in non-production envs. - Remove non-functional
AppConfig.serveStaticSite
logic.- It only worked in our env building locally, not in the published package.