top | item 36150340

(no title)

Ins43b | 2 years ago

I think it's import to keep your backend/api isolated from these FE frameworks. Backends live forever, these frameworks not so much.

discuss

order

himujjal|2 years ago

Yeah. This is exactly why I think the meta-frameworks wont really matter in a decade’s time or will disappear.

InertiaJS is an idea/implementation I like and its way of mitigating this issue of meta-framework dependence.

dimmke|2 years 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.

Ins43b|2 years ago

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.