Hacker News new | ask | show | jobs
by dimmke 1116 days ago
I agree with you, but what that actually looks like can vary.

Personally, I found maintaining a second backend only codebase and hitting it from the SvelteKit backend to be really cumbersome.

You can write controllers and even an API and keep it in its own folder system.

1 comments

I'm currently doing this with Next.js with a "custom server". Allows for sharing TypeScript interfaces/types and the express instance quite easily. It's just one big vscode project. But custom servers are frowned upon and will probably disappear in future versions which will make things slightly more complicated.