Skip to content

Commit 04b8c52

Browse files
committed
fix(plugin): await context creation
closes #1312
1 parent 2a76e2c commit 04b8c52

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/runtime/server/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ function createContextCreator(
196196
// Integrate context from plugins
197197
for (const plugin of plugins) {
198198
if (!plugin.context) continue
199-
const contextContribution = plugin.context.create(params.req)
199+
const contextContribution = await plugin.context.create(params.req)
200200

201201
Object.assign(context, contextContribution)
202202
}

0 commit comments

Comments
 (0)