I’m moving my multi-app monorepo from Heroku to Fly and I have questions. My repo uses yarn workspaces to share dependencies. To get this working in Heroku, I needed to use two build packs:
-----> Building on the Heroku-20 stack
-----> Using buildpacks:
1. GitHub - heroku/heroku-buildpack-nodejs: The official Heroku buildpack for Node.js apps.
2. GitHub - heroku/heroku-buildpack-multi-procfile: Everyone gets a Procfile!
-----> Node.js app detected
So my first question is can I use yarn workspaces to build and deploy my individual apps independently? If so, how?
- Fly uses the first build pack, but not the second one. It can’t find the dependencies when it builds because they live at a higher level.
- It doesn’t seem like fly is using yarn, but rather npm.