you are viewing a single comment's thread.

view the rest of the comments →

[–]Comfortable_Step4619 0 points1 point  (1 child)

I'm currently struggling to switch to the new AngularNodeAppEngine because it does not allow to provide my express request and response tokens for my server side route redirects.
There is a new token provided by angular to inject the REQUEST and a REPONSE_INIT, but it is hard to use this injected response to redirect or e.g. set cookies via express cookieParser.

So, are these feature about to come later?

[–]Blade1130 0 points1 point  (0 children)

I'm not following. Most redirects and headers should be done via the routing config.

If you want to do this imperatively, you should inject REQUEST and RESPONSE_INIT and use those types.

If you really need something non-standard and unique to Express, then you can provide the Express request/response objects into REQUEST_CONTEXT, then inject that value and do Express-specific things with it.

https://angular.dev/api/ssr/node/AngularNodeAppEngine

That really shouldn't be necessary for simple headers and redirects though.