Skip to content

Commit

Permalink
fix: change access-api src/index.js 'export default' to be an immedia…
Browse files Browse the repository at this point in the history
…tely-defined object in hopes stack traces will work better (#733)

Motivation:
* #623
  • Loading branch information
gobengo authored Apr 8, 2023
1 parent 2ca5de8 commit a509313
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/access-api/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ r.add('get', '/.debug/error', () => {
})

/** @type {import('./bindings.js').ModuleWorker} */
const worker = {
export default {
fetch: async (request, env, ctx) => {
const context = getContext(request, env, ctx)
context.log.time('request')
Expand All @@ -40,5 +40,3 @@ const worker = {
}
},
}

export default worker

0 comments on commit a509313

Please sign in to comment.