Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[esbuild] SSR: server.ts file ignored for "ng serve" #26354

Closed
1 task
Burgov opened this issue Nov 14, 2023 · 2 comments
Closed
1 task

[esbuild] SSR: server.ts file ignored for "ng serve" #26354

Burgov opened this issue Nov 14, 2023 · 2 comments

Comments

@Burgov
Copy link

Burgov commented Nov 14, 2023

Command

serve

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

So we've been using SSR for a few years already and we have a lot of custom logic in our server.ts file. Most notably, it contains a proxy to the API (so that it can be deployed separately, but accessed by the browser on the same domain), but also some other special proxies like the webmanifest file, a styling file that the API generates (tenant specific) and a special reroute for print specific rendering.

While I was trying to get the new application builder to work with our code, I noticed that while running ng serve, the server.ts file is completely ignored. Only when running ng build and then running the output does this file get included.

This is a change that I could not find documented anywhere and I'm wondering what the reason for this change is. It forces us to kind of redo this whole part altogether if we want to keep everything working while developing locally.

Apologies if this isn't the right place for this topic.

Minimal Reproduction

Exception or Error

No response

Your Environment

Angular CLI: 17.0.0
Node: 18.17.1
Package Manager: npm 9.8.1
OS: darwin arm64

Angular: 17.0.2
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... platform-server, router, service-worker

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1700.0
@angular-devkit/build-angular   17.0.0
@angular-devkit/core            17.0.0
@angular-devkit/schematics      17.0.0
@angular/cdk                    17.0.0
@angular/cli                    17.0.0
@angular/fire                   16.0.0
@angular/google-maps            17.0.0
@angular/material               17.0.0
@angular/ssr                    17.0.0
@schematics/angular             17.0.0
rxjs                            7.8.1
typescript                      5.2.2
webpack                         5.88.2
zone.js                         0.14.2

Anything else relevant?

No response

@eneajaho
Copy link
Contributor

This is almost the same as this issue:
#26323

@JeanMeche JeanMeche closed this as not planned Won't fix, can't repro, duplicate, stale Nov 14, 2023
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Dec 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants