enabled the disqus comment on the hugo site doks theme. updated config.toml with shortname disqusShortname = “xxxx”, updated single.html as per disqus snippet. works well in the local server, however when pushing upstream and deplying the application, it does not reflect changes (we are using netlify to deploy the app.), checked the netlify settings, its not getting blocked
- What is your
netlify.toml
looking like? As far as I remember you will need to explicitly tell Netlify that it’sHUGO_ENV
isproduction
. If your site has a development and production configuration this might be resulting in Disqus not showing up. - What does the browsers console say? Any errors about blocked scripts?
- What is the meaning of “reflecting changes”? What changes did you do other than adding the configuration?
- How is Disqus integrated? Via internal template, via a theme you are using, via your own partial?
- What is the current content of your
single.html
? - What is the output of
hugo --logLevel info
?
Did you update the script-src
section of the Content-Security-Policy
in netlify.toml
?
1 Like
This was the Content security policy indeed, had to explicitly define the shortname.disqus.com url in src script
thanks for pointing out
resolved via csp fixing
1 Like
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.