I am exploring Fly.io because my application built with redwoodJS needs to support wildcard domains to host customer portal at *.mydomain.com and eventually allow them to connect something.theirdomain.com.
Ive had trouble with hosts like Vercel and want to move to a more flexible setup.
Is there a build step in package.json? You may need to add this script:
"scripts": {
...
"postinstall": "yarn build"
},
You might also need to change to the Heroku builder (which we’ll probably do soon by default). In fly.toml, just replace the [build] section with this:
Yea it’s tricky. Redwood has an API and Web side. It also uses yarn workspaces to split these two. So I am not sure if this get automatically picked up?
PS - The core maintainers of redwood were interested in helping reach compatibility with Fly for redwoodjs. If are open to it - a shared slack workspace can be opened up. Reach out to David Price.
It will generate a Dockerfile and an accompanying fly.toml, making the project deployable immediately on Fly. Give it a spin, and let us know how it goes!