Try our conversational search powered by Generative AI!

css/scripts not rendering in wwwroot and none of the blobs are rendering

Vote:
 

Hello,

We are in the process of migrating from CMS 11 TO cms12. I just successfully deployed the code but none of the css/js from wwwroot and anything on the CMS - globalassets is not rendering. 

Please advise on what I need to do. I've made sure to add this in ConfigureServices:

 services.AddAzureBlobProvider(o =>
                {
                    o.ContainerName = "qdsitemedia";
                });
                services.AddAzureEventProvider(o =>
                {
                    o.TopicName = "MySiteEvents";
                });

and this is added in Configure:

 app.UseStaticFiles();

Anything else I need to make sure?

Thanks

Daman

#293903
Dec 30, 2022 0:08
Vote:
 

Is it a DXP environment? Is the site running correctly locally?  

Please note that Linux environment has case-sensitive URL processing, see:
https://support.optimizely.com/hc/en-us/articles/4432327031565-Fix-broken-CMS-JS-client-resources-when-running-on-Linux

#294054
Jan 03, 2023 7:49
Vote:
 

I was able to get those css/scripts to render but now having an issue with Azure blob images not loading. Any advice on that?

Thanks

Daman

#294106
Jan 04, 2023 0:19
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.