AEM Remote SPA Model manager is not rendering content after deploying in aws s3
When AEM Remote SPA is locally developed everything is working fine. But, when we build the react SPA and run with command (serve -s build) Model manager is not able to render data.
code:
import { ModelClient, ModelManager } from "@adobe/aem-spa-page-model-manager";
ModelManager.initializeAsync({
modelClient: new ModelClient('https://publish-url.adobeaemcloud.com'),
path: '/content/wknd-app/us/en/home.model.json'
});
const container = document.getElementById('root');
const root = createRoot(container);
root.render(<App />);

