Skip to content

v4.5.0

Compare
Choose a tag to compare
@sapegin sapegin released this 02 Jan 08:42

New features

Support custom configuration to the Express server (#273 by @cef62):

module.exports = {
  // ...
  configureServer(app) {
     // `app` is the instance of the express server running react-styleguidist
      app.get('/custom-endpoint', (req, res) => {
          res.status(200).send({ response: 'Server invoked' });
      });
  },
};