Skip to content

Commit

Permalink
Tweak preview resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
benmerckx committed Nov 14, 2023
1 parent 10067bf commit 9b99871
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/backend/Handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export class Handler {
}

async periodicSync() {
if (Date.now() - this.lastSync > 30_000) return
if (Date.now() - this.lastSync > 1_000) return
try {
await this.syncPending()
} catch {}
Expand Down
6 changes: 5 additions & 1 deletion src/core/driver/NextDriver.server.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ class NextDriver extends DefaultDriver implements NextApi {
resolveDefaults
})
const handler = await this.cloudHandler
return handler.resolver
return {
resolve(params) {
return handler.resolver.resolve({...resolveDefaults, ...params})
}
}
}

backendHandler = async (request: Request) => {
Expand Down

0 comments on commit 9b99871

Please sign in to comment.