Reverse Proxy
ale
provides built-in reverse proxy support without the need to configure a Nginx server. This feature works seamlessly across all frontend frameworks.
Prerequisites
To use the reverse proxy with React or other frontend services, update your external API calls to use your service’s domain path instead of the external API URLs. The proxy will route these requests based on your Rewrite configuration during deployment.
Apply Reverse Proxy (Rewrites)
For React and other web applications, set up reverse proxy by adding rewrite rules in the Rewites fields of the deployment settings.
-
Left field: The path in your application code (e.g.,
/api/users
) -
Right field: The target API endpoint (e.g.,
https://app.example.com/api/orders
)
You can either select a service from the same environment using the dropdown menu and add paths, or directly enter a URL.