I am trying to setup SmartEdit with SPARTACUS 5.2, I tried following the document in the SAP Help Portal > SAP Commerce Cloud, composable storefront > Integrations > SmartEdit > Integration.
I am able to login but Perspective Toolbar is missing at the top. Also it will be in loading state as shown below.
Below is Spartacus changes
- Added the below snippet in angular.json file
{ "glob": "**/*", "input": "node_modules/@spartacus/smartedit/assets", "output": "assets/" }
- Changed the spartacus-configuration.module.ts as below
provideConfig(<SmartEditConfig>{ smartEdit: { storefrontPreviewRoute: 'cx-preview', allowOrigin: 'localhost:9002', }, }),
- Added the URL in whiteListedStorefronts
["https://localhost:4200"]
But still, my SmartEdit shows the loading state.
I checked the network tab and I don't see webApplicationInjector.js
call failing , It gives 200 OK.
Is there any other configuration I am missing? Thank you for your help