fix(@schematics/angular): include default export for Express app

This update is required for Firebase functions compatibility.

Closes #29488
This commit is contained in:
Alan Agius 2025-02-10 13:59:47 +00:00 committed by Alan Agius
parent 880a50c50c
commit aa0ae457b0
2 changed files with 3 additions and 1 deletions

View File

@ -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;

View File

@ -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);