I guess your right, one thing I really liked about the monorepo approach was I could easily share the database schemas and types between frontend and backend.
esm and commonjs compatability, was having some trouble with it in fastify, I just want to use bun with elysia as the backend on railway and nextjs app in the frontend with vercel