data-smartedit-allow-origin
如果应用程序托管在 CCV2 中,那么管理不同环境的最佳方法(在 index.html 中)是什么?目前,该值在 index.html 中被硬编码。对于我们的 Development Storefront,它指向 Development SmartEdit/Hybris。例如 data-smartedit-allow-origin="Development-URL"
如果我们有其他环境,例如登台和生产环境,怎么样?我们正在考虑将它们合并为 1,例如: data-smartedit-allow-origin="Development-URL,Staging-URL,Production-URL" 但是,这似乎并不理想。对于 Hybris,我们可以针对不同的环境使用不同的 local.properties 文件。(例如 local-dev.properties、local.prod.properties)