sveltejs / realworld

SvelteKit implementation of the RealWorld app
https://realworld.svelte.dev
MIT License
2.24k stars 353 forks source link

Make client-side fetch directly from productionready api #88

Open ambrt opened 3 years ago

ambrt commented 3 years ago

I would like your opinion on this.

Basically this version (SvelteKit) fetches all data through own server. Previous version (Svelte) was fetching directly from productionready.io api server on client side.

Actual situation creates two round trips - one to sveltekit server and the other from server to productionready.io api.

I think that correct way is to fetch directly from api when on client.