#ssr server.ts middleware,etc with local vite server

3 messages · Page 1 of 1 (latest)

storm mason
#

My understanding is that new tech is available in v19 that should allow for custom routes and other middleware defined in server.ts Express server as well as injected REQUEST and RESPONSE tokens to be available on the local vite dev server with the application builder.

NOTE: Our app has been in continual development and upgraded all the way from v2 and from the nguniversal days - it was not created with, but was updated with, the current CLI.

The bug report here: https://github.com/angular/angular-cli/issues/26323 suggests it's fixed, but the instructions are not clear imo.

I do not want my team to need to run the production build for our use cases, and I do not want to use the old webpack builder if we can avoid it. How do we make this work?

Thanks.

GitHub

Which @angular/* package(s) are the source of the bug? Don't known / other Is this a regression? Yes Description Prior to upgrading to v17 our application passed express' req/res as REQUEST...

simple apex
#

Create a brand new project with the latest CLI. Choose to enable SSR. Choose to use the Server Routing and App Engine APIs. You should have something that does what you want. Then compare how this new project is configured and how your is, to know which changes to apply.

storm mason
#

Thanks, I'll give it a try