NextJS
To deploy a NextJS with BAML, take a look at the starter template: https://github.com/BoundaryML/baml-examples/tree/main/nextjs-starter
All you need is to modify the nextjs.config.mjs
to allow BAML to run properly:
and change your package.json
to build the baml client automatically (and enable logging in dev mode if you want):