Describe the problem
I want to register webhooks on application start, but the webhook creation request requires response to a PING request. The init hook fires before http server start (adapter-node), so sveltekit can not answer the request yet and the webhook creation fails.
Describe the proposed solution
I would like to see a listen hook (hook.server.js) that fires as soon as SvelteKit is ready to receive requests.
Alternatives considered
I am currently using the init hook with a setTimeout.
Importance
would make my life easier
Additional Information
Not sure how this would work on serverless / edge platforms, but I think this would be very useful on standalone runtimes.
Describe the problem
I want to register webhooks on application start, but the webhook creation request requires response to a PING request. The
inithook fires before http server start (adapter-node), so sveltekit can not answer the request yet and the webhook creation fails.Describe the proposed solution
I would like to see a
listenhook (hook.server.js) that fires as soon as SvelteKit is ready to receive requests.Alternatives considered
I am currently using the
inithook with asetTimeout.Importance
would make my life easier
Additional Information
Not sure how this would work on serverless / edge platforms, but I think this would be very useful on standalone runtimes.