To support our new Angular starter kit, we've been working hard to create a Node proxy application that enables backend functionality and features equivalent to those in our Next.js starter kit for XM Cloud.
This proxy, which is currently in public beta, does the following:
Enables server-side rendering using a server bundle generated from your single-page application.
Handles Sitecore GraphQL requests, differentiating between production and development endpoints. It constructs the target URL and path for proxy requests, ensuring compliance with http-proxy-middleware requirements.
Configures the port for running the proxy. This defaults to 3000 if not otherwise specified in your environment variables.
Allows configuration of personalization features, including endpoint timeouts, the scope and site name for Sitecore Personalize, conditional personalization per-environment, and cookie consent.
Provides a default language fallback in case language data is not present in layout data.
This proxy is designed to work with all SPA frameworks and can also be used to run React and Vue applications, laying the groundwork for future JSS starter kits built for other front-end JavaScript frameworks.
For more information, including how to configure aspects of the proxy, please refer to the JSS release notes.