Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For bringing your custom Angular theme into production, please refer to the Angular CLI documentation on building an application into a small set of Javascript bundles for production usage. We recommend serving these files from a different server than the Runtime environment itself, for example a CDN environment specifically for hosting all static assets.

We recommend that all browser traffic flows through the same (proxy) server, for adhering In order to adhere to the same-origin security policy without needing to configure additional CORS headers to allow certain cross-origin requests, we recommend that you either 1) configure a reverse proxy server or 2) configure a subdomain with custom DNS bindings.

Reverse proxy server

In a reverse proxy server, you may configure redirects based on incoming request paths such that Runtime API requests are redirected to the Runtime backend(s) and static resources are downloaded from the CDN server.

Image Added

If you are using a clustered Runtime setup, you may choose to implement these redirects in your load balancer layer.

DNS Routing

As an alternative to setting up a reverse proxy server, you may choose to create a subdomain for CDN purposes. In the DNS configuration of your host, you may configure a different IP address for this subdomain, such that asset requests are directly routed to the CDN and API requests arrive at the Runtime instance.

Image Added