Integrating Effect.runMain in SvelteKit with Vite Development Environment
I'm building a sveltekit project and integrating and using effect for the first time, so far it's all working great.
The only thing I'm a bit struggling with right now, is how/where to put my Effect.runMain. Since I want to have an effect that runs for the entire lifetime of the service, not just during api calls.
In production it seems rather simple, I can simply wrap the starting of the express server. However in development with vite, I'm a bit lost, since there's no clear entrypoint that I can figure out.
What would be the recommended approach for this? Or am I misunderstanding something :D
The only thing I'm a bit struggling with right now, is how/where to put my Effect.runMain. Since I want to have an effect that runs for the entire lifetime of the service, not just during api calls.
In production it seems rather simple, I can simply wrap the starting of the express server. However in development with vite, I'm a bit lost, since there's no clear entrypoint that I can figure out.
What would be the recommended approach for this? Or am I misunderstanding something :D
