Skip to content

0.12.0

Choose a tag to compare

@burt202 burt202 released this 17 Mar 09:02
· 22 commits to main since this release
  • BREAKING: Add inquirer to allow easy selection of collection (this can be skipped by passing skipSelectionPrompt in config)

Adding inquirer has meant a change on how you create and start the server. Docs will be updated soon but here is an example of the change needed:

void createServer(
  {routes, collections, webSockets, staticPaths},
  {
    delay: 1000,
    selected: process.env.SELECTED_MOCKS_COLLECTION ?? "base",
    port: 3101,
  },
).then((server) => {
  void server.start()
})