Skip to content

Commit da1bc66

Browse files
committed
fix: re-add @ts-expect-error for app engine until angular types are adjusted
1 parent 3c0c2f3 commit da1bc66

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/helpers/serverModuleHelpers.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export default async function HttpHandler(request: Request, context: any): Promi
2222
const NetlifyServerTsAppEngine = /* typescript */ `import { AngularAppEngine, createRequestHandler } from '@angular/ssr'
2323
const angularAppEngine = new AngularAppEngine()
2424
25+
// @ts-expect-error - createRequestHandler expects a function with single Request argument and doesn't allow context argument
2526
export const reqHandler = createRequestHandler(async (request: Request, context: any) => {
2627
const result = await angularAppEngine.handle(request, context)
2728
return result || new Response('Not found', { status: 404 })

0 commit comments

Comments
 (0)