Multiple platforms, same project
Hi! I was wondering if I could have, for the same monorepo, a hono instance to deploy with NodeJS to a traditional long-running server, and also have another instance to be able to deploy to vercel or aws lambda for stuff like cronjobs.
5 Replies
Yeah you can, This is something which is more related to your monorepo setup then Hono but yeah you can totally do it
Ok thanks will try it
Ok so it works with something like this, where the
vercel
and node
dirs are going to run separate apis and both depend on the code exported by the domain
dir. But for now the index.ts
just contains the example from the docs. How do I import code from the domain
directory, but tell vercel to only deploy the contents of the vercel
directory?I hope is not confusing lol
I might as well use turborepo for this
You will need to configure that in your vercel project like the root of your app which you want to deploy, what's the build command and where the dist folder be. Other then that the importing and stuff is related to your tsconfig and turborepo setup