Skip to content

Commit

Permalink
fix(@schematics/angular): include default export for Express app
Browse files Browse the repository at this point in the history
This update is required for Firebase functions compatibility.

Closes #29488
  • Loading branch information
alan-agius4 committed Feb 10, 2025
1 parent 880a50c commit aa0ae45
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,5 @@ if (isMainModule(import.meta.url)) {
console.log(`Node Express server listening on http://localhost:${port}`);
});
}

export default app;
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit aa0ae45

Please sign in to comment.