Example project on how to setup SvelteKit with ASP.NET Core SPA services.
I just wrote a blog post about this sample and I went into detail about the config, so if you're interested, go check it out!
https://codeliturgy.com/recipe/hosting-a-sveltekit-app-with-aspnet-core