Skip to content

Commit

Permalink
fix: pass through disposeOnProcessTerminate to createServerAdapter (
Browse files Browse the repository at this point in the history
  • Loading branch information
slagiewka authored Feb 17, 2025
1 parent ecc9f6e commit 96498ee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/brave-cooks-shave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'graphql-yoga': patch
---

Pass through `disposeOnProcessTerminate` to `createServerAdapter`
1 change: 1 addition & 0 deletions packages/graphql-yoga/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -659,5 +659,6 @@ export function createYoga<
return createServerAdapter<TServerContext, YogaServer<TServerContext, TUserContext>>(server, {
fetchAPI: server.fetchAPI,
plugins: server['plugins'],
disposeOnProcessTerminate: options.disposeOnProcessTerminate,
});
}

0 comments on commit 96498ee

Please sign in to comment.