Title: Angular 19 SSR cloud functions ESM build · Issue #3645 · angular/angularfire · GitHub
Open Graph Title: Angular 19 SSR cloud functions ESM build · Issue #3645 · angular/angularfire
X Title: Angular 19 SSR cloud functions ESM build · Issue #3645 · angular/angularfire
Description: unable to serve/deploy ssr functions esm build artifacts with vanilla cloud functions able to ng serve, ng build (build-angular:application), and node ./server.mjs other functions unrelated to SSR are working (server backend) as intended...
Open Graph Description: unable to serve/deploy ssr functions esm build artifacts with vanilla cloud functions able to ng serve, ng build (build-angular:application), and node ./server.mjs other functions unrelated to SSR ...
X Description: unable to serve/deploy ssr functions esm build artifacts with vanilla cloud functions able to ng serve, ng build (build-angular:application), and node ./server.mjs other functions unrelated to SSR ...
Opengraph URL: https://github.com/angular/angularfire/issues/3645
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Angular 19 SSR cloud functions ESM build","articleBody":"- [ ] unable to serve/deploy ssr functions esm build artifacts with vanilla cloud functions\n- [x] able to ng serve, ng build (build-angular:application), and node ./server.mjs\n- [x] other functions unrelated to SSR are working (server backend) as intended\n\nHeres my SSR setup:\n\nuniversal.ts\n\n```typescript\nimport { onRequest } from 'firebase-functions/v2/https';\nimport { render } from '../../render.js';\nimport express, { Request, Response, NextFunction } from 'express';\nimport * as server from '../../../dist/stamp-app/server/server.mjs';\nexport const ssrApp = express() as any;\n\nssrApp.use(express.static('dist/stamp-app/browser'));\nssrApp.get('*', async (req: Request, res: Response, next: NextFunction) => {\n\tconst ssr: any = await render(server, req, res, next);\n\tres.send(ssr);\n});\n\nexport const universal = onRequest(\n\t{ maxInstances: 10, timeoutSeconds: 1200, cpu: 1, memory: '2GiB', region: ['us-central1'] },\n\tssrApp\n);\n``` \nrender.js\n```typescript\nimport { Request, Response, NextFunction } from \"express\";\n\nexport async function configServerApp(app: any, req: Request, res: Response, next: NextFunction) {\n //configure app here & retrieve HTML\n let template;\n if (req.path === '/') {\n // template = await fetch('@dist/stamp-app/browser/index.csr.html');\n next();\n }\n template = `\u003cdiv>HTML CONTENT FOR SSR APP\u003c/div>`;\n return template;\n}\nexport async function render(app: any, req: Request, res: Response, next: NextFunction) {\n const ssrApp = await configServerApp(app, req, res, next);\n return ssrApp;\n}\n``` \n\nam I missing something..? thanks for any help in advance","author":{"url":"https://github.com/chakrachi","@type":"Person","name":"chakrachi"},"datePublished":"2025-04-09T06:55:29Z","url":"https://github.com/angular/angularfire/issues/3645"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:46b1bd29-ad0b-e6fd-336b-f587c1390f62 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 80B0:35875C:6733A7:848FA6:6B0356C9 |
| html-safe-nonce | 94cab290f3025f9f23fadbc99121fc0684e273ce22225bc2d76d1a6df005ce2c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MEIwOjM1ODc1Qzo2NzMzQTc6ODQ4RkE2OjZCMDM1NkM5IiwidmlzaXRvcl9pZCI6IjY2MjgzNTQzNTMxODUxMTc4OTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 021b551f705add605cffcbb13251d17b2de03db1c92b75b5da9cca8b29fad3c7 |
| hovercard-subject-tag | issue:2981756102 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angularfire/3645/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4907f0f45e05285ee4f2431c4dc6337dfbb09f500ad2322485e84a8c6cacaef9/angular/angularfire/issues/3645 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4907f0f45e05285ee4f2431c4dc6337dfbb09f500ad2322485e84a8c6cacaef9/angular/angularfire/issues/3645 |
| og:image:alt | unable to serve/deploy ssr functions esm build artifacts with vanilla cloud functions able to ng serve, ng build (build-angular:application), and node ./server.mjs other functions unrelated to SSR ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | chakrachi |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angularfire git https://github.com/angular/angularfire.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 49453413 |
| octolytics-dimension-repository_nwo | angular/angularfire |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49453413 |
| octolytics-dimension-repository_network_root_nwo | angular/angularfire |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width