H
Hono3mo ago
Cobain

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
Aditya Mathur
Aditya Mathur3mo ago
Yeah you can, This is something which is more related to your monorepo setup then Hono but yeah you can totally do it
Cobain
CobainOP3mo ago
Ok thanks will try it
Cobain
CobainOP3mo ago
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?
No description
Cobain
CobainOP3mo ago
I hope is not confusing lol I might as well use turborepo for this
Aditya Mathur
Aditya Mathur3mo ago
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
Want results from more Discord servers?
Add your server