Each file in this directory exports an Express Middleware function.
For more info, see https://expressjs.com/en/guide/using-middleware.html
mock-va-portal.ts lets you test the Virtual Assistant integration without access to a staging portal. The production portal rejects localhost:4000 because it is hardened to https://docs.github.com.
To test locally:
- Add
SUPPORT_PORTAL_URL=http://localhost:4000to your.envfile. - Run
npm run dev. - Navigate to a page listed in the
PagePathToVaFlowMappingobject inArticleContext.
This mock is not secure. Use it only for local development.
