Skip to content

Commit

Permalink
Update packages/wrangler/pages/functions/template-worker.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Sunil Pai <[email protected]>
  • Loading branch information
GregBrimble and threepointone authored Jan 7, 2022
1 parent 817a9aa commit 23393cf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/wrangler/pages/functions/template-worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@ function* executeRequest(request: Request, env: Env) {

// Finally, yield to the fallback service (`env.ASSETS.fetch` in Pages' case)
return {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
// @ts-expect-error we don't define a type for the special global __FALLBACK_SERVICE_FETCH__ since we replace it when we're building anyway
handler: () => __FALLBACK_SERVICE_FETCH__(request.url, request),
params: {} as Params,
};
Expand Down

0 comments on commit 23393cf

Please sign in to comment.