Based on:
This is a simplified version of the Heroku Lerna Storybook buildpack (simply stripped off anything related to storybook).
- The
package.json
inside the root of your project includedlerna
asdevDependency
YARN_PRODUCTION
is set tofalse
inside your Heroku configAPP_BASE
inside your Heroku config points to the relative path of your application- The NodeJS buildpack must be defined before this one
my-monorepo
|-- packages
|-- my-components
|-- my-utilities
|-- services
|-- my-app
|-- package.json
|-- my-api
|-- package.json
|-- lerna.json
|-- package.json
heroku config:set YARN_PRODUCTION=false -a <heroku-app-name>
heroku config:set APP_BASE=false -a <relative-path-to-app>