You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add an option for a basePath where server is running, appended to the host:port. E.g.:
module.exports={command: 'npm run start --port 3000',host: 'customhost.com',port: 3000,basePath: 'myservice'}
Would equal to this URL where the server is hosting files: customhost:3000/myservice.
Motivation
Many cloud native apps support setting a basePath, since ingress/proxies/edge routes often host services/apps under a "prefix". Supporting a basePath means that in local development you can test so that your application works properly when using a basePath, verifying it works properly with such ingress/edge proxies.
🚀 Feature Proposal
Add an option for a basePath where server is running, appended to the host:port. E.g.:
Would equal to this URL where the server is hosting files:
customhost:3000/myservice
.Motivation
Many cloud native apps support setting a basePath, since ingress/proxies/edge routes often host services/apps under a "prefix". Supporting a basePath means that in local development you can test so that your application works properly when using a basePath, verifying it works properly with such ingress/edge proxies.
Example
See above. Also see e.g. this proxy (most proxies has the same functionality):
https://docs.traefik.io/v1.4/basics/#path-matcher-usage-guidelines
Pitch
jest-dev-server
is used to launch "your own app" to test it e.g. when running locally, and we want to be able to mimic real-life scenarios.The text was updated successfully, but these errors were encountered: