Skip to content

Commit

Permalink
feat: return context and port in startServer
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Sep 18, 2024
1 parent 26accca commit 39e1fc3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/core/src/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,5 +307,9 @@ export async function getResolvedContext(mq: MoquerieInstance): Promise<Resolved
}

export async function startServer(mq: MoquerieInstance) {
await mq.getResolvedContext()
const ctx = await mq.getResolvedContext()
return {
...ctx,
port: ctx.context.port,
}
}

0 comments on commit 39e1fc3

Please sign in to comment.