Title: Support either proxy-conf or use ssr entrypoint for @angular-devkit/build-angular:dev-server · Issue #27144 · angular/angular-cli · GitHub
Open Graph Title: Support either proxy-conf or use ssr entrypoint for @angular-devkit/build-angular:dev-server · Issue #27144 · angular/angular-cli
X Title: Support either proxy-conf or use ssr entrypoint for @angular-devkit/build-angular:dev-server · Issue #27144 · angular/angular-cli
Description: Command serve Description I have a project using @angular-devkit/build-angular:application as executor. This project has SSR enabled, via ssr: { entry: 'path/to/file' } and server: path-to-main.server.ts When i run nx serve it detects th...
Open Graph Description: Command serve Description I have a project using @angular-devkit/build-angular:application as executor. This project has SSR enabled, via ssr: { entry: 'path/to/file' } and server: path-to-main.ser...
X Description: Command serve Description I have a project using @angular-devkit/build-angular:application as executor. This project has SSR enabled, via ssr: { entry: 'path/to/file' } and server: path-to-...
Opengraph URL: https://github.com/angular/angular-cli/issues/27144
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support either proxy-conf or use ssr entrypoint for @angular-devkit/build-angular:dev-server","articleBody":"### Command\n\nserve\n\n### Description\n\nI have a project using @angular-devkit/build-angular:application as executor. \r\nThis project has SSR enabled, via `ssr: { entry: 'path/to/file' }` and `server: path-to-main.server.ts`\r\n\r\nWhen i run `nx serve` it detects that i have SSR enabled, and helpfully starts the server side rendering, by bootstrapping the thing from `server` path (not the thing from `ssr.entry`)\r\n\r\nI have an external api, that is usually mapped via proxyConf, but this seems not to take effect. Ie the client side requests for /api/ does not get proxied, but rather the requests get sent to the SSR part which then just renders index.html\r\n\r\nAnd since its not using the ssr-entry point to run this server, i cant add, say, an express-proxy to the configuration.\n\n### Describe the solution you'd like\n\nI'd like to be able to proxy calls to third party, for browser side calls, on projects that use build-angular:application and build-angular:dev-server\r\n\r\n\n\n### Describe alternatives you've considered\n\nI can inject the true host names for third party service, from server side variables into client side, but this adds CORS overhead and management issues during normal development.","author":{"url":"https://github.com/asgerjensen","@type":"Person","name":"asgerjensen"},"datePublished":"2024-02-22T11:21:45Z","url":"https://github.com/angular/angular-cli/issues/27144"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| 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:81da09ea-04c9-4fdd-beac-8fc083880872 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EDD6:1F55:71B969:9A53B4:6AED5A08 |
| html-safe-nonce | adae46eb9791c73f5621b4e88989a1253fa5d467ebfe22ea117f5c7287fbd67d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFREQ2OjFGNTU6NzFCOTY5OjlBNTNCNDo2QUVENUEwOCIsInZpc2l0b3JfaWQiOiI1Njg5Nzg4NTI0NTE2OTU2NjgwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f89cebd19f4c03da9af97ee0449b62e93cf145b00ef9d2d8ec8358f401615ce7 |
| hovercard-subject-tag | issue:2148838759 |
| 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/angular-cli/27144/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1dc0376452cb1bda2f86b33253c1e05d4ff69c504b72ed2a56ce0f3ca10ca3ea/angular/angular-cli/issues/27144 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1dc0376452cb1bda2f86b33253c1e05d4ff69c504b72ed2a56ce0f3ca10ca3ea/angular/angular-cli/issues/27144 |
| og:image:alt | Command serve Description I have a project using @angular-devkit/build-angular:application as executor. This project has SSR enabled, via ssr: { entry: 'path/to/file' } and server: path-to-main.ser... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | asgerjensen |
| hostname | github.com |
| expected-hostname | github.com |
| None | 56fb42677ae87ed3e64410323d67980aa65d0485568a7858f874e7edfc6d1c11 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular-cli git https://github.com/angular/angular-cli.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 36891867 |
| octolytics-dimension-repository_nwo | angular/angular-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36891867 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-cli |
| 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 | 9c9a37e2423ed382cf39f70b5aa4b4858b40a3b0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width