Skip to content

Commit 3c428c9

Browse files
Copilothotlong
andcommitted
fix: use undefined instead of null for empty request context in nextjs adapter
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 1701a67 commit 3c428c9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/adapters/nextjs/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ export interface ServerActionResult<T = any> {
199199
*/
200200
export function createServerActions(options: NextAdapterOptions) {
201201
const dispatcher = new HttpDispatcher(options.kernel);
202-
const emptyContext = { request: null };
202+
const emptyContext = { request: undefined };
203203

204204
return {
205205
/**

0 commit comments

Comments
 (0)