Sitecore / jss

Software development kit for JavaScript developers building web applications with Sitecore Experience Platform
https://jss.sitecore.com
Apache License 2.0
263 stars 275 forks source link

[angular-xmcloud][xmcloud-proxy] Move PERSONALIZE_SCOPE to angular SPA #1973

Closed art-alexeyenko closed 1 week ago

art-alexeyenko commented 1 week ago

Description / Motivation

This ensures PERSONALIZE_SCOPE is not duplicated between proxy and angular app. Potentially to change in future - but so far the variable is used in both personalize and CDP page views - so the base SPA app is where it currently should be.

Testing Details

Types of changes

addy-pathania commented 1 week ago

As discussed, we should move all the personalize related env variables from proxy to SPA.

art-alexeyenko commented 1 week ago

@addy-pathania I'm not sure it is a good idea for timeout variables. Having to rebuild angular app when switching timeouts back and forth (during load test, for example?) would be a pain. And unlike the scope, timeouts are only used on server side. @illiakovalenko what do you think?

illiakovalenko commented 1 week ago

@art-alexeyenko @addy-pathania I think that, potentially, we can leave "timeout" variables under the "proxy" since it's fully belongs to the middleware and proxy configuration. Like we did for "JSS_EDITING_SECRET"