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

[ui5-proxy-middleware] FEATURE: Allow to specify pathReplace for /resources and /test-resources paths #2808

Open
tavnabisoft opened this issue Jan 22, 2025 · 0 comments

Comments

@tavnabisoft
Copy link

tavnabisoft commented Jan 22, 2025

Description

It's not possible to map ui5 resources paths to custom ones rather than /resources and /test-resources. The path taken from configuration->ui5->path is treated as string instead with no option to pass object mapping. This causes problems with overlapping libraries consumed by application/component, that are also exposed under /resources path, thus can't be consumed anymore.

What is expected is similar to pathReplace option in backend-proxy-middleware:

server:
  customMiddleware:
  - name: ui5-proxy-middleware
    afterMiddleware: compression
    configuration:
      ui5:
      - path: /ui5-resources
        pathReplace: /resources
        url: https://ui5.sap.com
@tavnabisoft tavnabisoft changed the title [ui5-proxy-middleware] FEATURE: Allow to specify pathRewrite for resources and testResources paths [ui5-proxy-middleware] FEATURE: Allow to specify pathReplace for /resources and /test-resources paths Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant