As stated in [this ](https://github.com/sveltejs/svelte/issues/6423)issue, Sveltekit might be the right place to adress this.