Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exported handler for custom servers "hangs". #55

Open
maietta opened this issue Apr 18, 2024 · 0 comments
Open

Exported handler for custom servers "hangs". #55

maietta opened this issue Apr 18, 2024 · 0 comments

Comments

@maietta
Copy link

maietta commented Apr 18, 2024

Is the exported handler not working for custom servers?

The first issue was that "handler" endpoint doesn't exist. But "handler_default" does? Anyway...

I'm wanting to use a custom server, I don't care of it's Polka, Express or anything else, but I need to run a script during application start, which in turn, calls the main application. This way I can perform tasks such as setting of a schedular or fire off an email, etc.

Per the SvelteKit docs, we can use a custom server. A couple issues with Svelte Adapter Bun project (here) were referenced before and an exported handler was added for this very purpose.

See #41

Here is my minimum reproducible example, of a custom server script called "my-server.js", which uses Express.

https://github.com/maietta/annoying-sveltekit-bun-custom-server-issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant