mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-14 17:43:52 +08:00
fix(@schematics/angular): include default export for Express app
This update is required for Firebase functions compatibility. Closes #29488
This commit is contained in:
parent
880a50c50c
commit
aa0ae457b0
@ -63,3 +63,5 @@ if (isMainModule(import.meta.url)) {
|
|||||||
console.log(`Node Express server listening on http://localhost:${port}`);
|
console.log(`Node Express server listening on http://localhost:${port}`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export default app;
|
||||||
|
@ -61,6 +61,6 @@ if (isMainModule(import.meta.url)) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The request handler used by the Angular CLI (dev-server and during build).
|
* Request handler used by the Angular CLI (for dev-server and during build) or Firebase Cloud Functions.
|
||||||
*/
|
*/
|
||||||
export const reqHandler = createNodeRequestHandler(app);
|
export const reqHandler = createNodeRequestHandler(app);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user