Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Universal support for proxy.conf.json #1757

@Trysor

Description

@Trysor

🚀 Feature request

What modules are relevant for this feature request?

  • aspnetcore-engine
  • builders
  • common
  • express-engine
  • hapi-engine
  • module-map-ngfactory-loader

Description

Using Angular CLI, one is able to use a file (namely proxy.conf.json) and name this as proxyConfig in dev-server target options of angular.json, or as a parameter to ng serve.

Describe the solution you'd like

It would be preferable to have proxyConfig as an available option for ssr-dev-server as well.

Describe alternatives you've considered

Three main workarounds spring to mind;

  1. Routing middleware which redirects the request in the server.ts file
  2. HTTP Interceptor
  3. environment variable

However, all three requires changes to code. There is a reason the proxyConfig exists for dev-server; the same reasons could be applied for ssr-dev-server.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions