Skip to content

Improve debug logging #123

@chimurai

Description

@chimurai

Current debug logging doesn't take into account the http-proxy options:

  • prependPath (default: true)
  • ignorePath (default: false)

Example:

The following setup will prepend the target's path to the proxy path, when target is configured with a path; i.e. "http://localhost:8080**/api**". Since prependPath defaults to true

proxy('/api', {target: 'http://localhost:8080/api', logLevel: 'debug'});

// Current
// [HPM] Proxy created: /api  ->  http://localhost:8080/api
// [HPM] GET /api/users/123 -> http://localhost:8080/api

// Expected
// [HPM] Proxy created: /api  ->  http://localhost:8080/api/api
// [HPM] GET /api/users/123 -> http://localhost:8080/api/api/users/123

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions