We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af0da37 commit 13a94f1Copy full SHA for 13a94f1
packages/sveltekit/src/server/sdk.ts
@@ -24,15 +24,5 @@ export function init(options: NodeOptions): NodeClient | undefined {
24
25
applySdkMetadata(opts, 'sveltekit', ['sveltekit', 'node']);
26
27
- const client = initNodeSdk(opts);
28
-
29
- if (typeof process !== 'undefined') {
30
- process.on('sveltekit:shutdown', async () => {
31
- if (client) {
32
- await client.close(2000);
33
- }
34
- });
35
36
37
- return client;
+ return initNodeSdk(opts);
38
}
0 commit comments