Closed erikmartinessanches closed 4 years ago
@erikmartinessanches The config.siteUrl
in the example is dependant on how you've configured your site, so any way of providing the url
should work.
If data.site.siteMetadata.siteUrl + location.pathname
isn't working, then I would recommend adding a console.log
to make sure that it is creating a valid URL.
Additionally, are you able to get the Disqus component to load when you run your site locally?
@erikmartinessanches I'm going to assume this issue was resolved and close it out since it appears to have gone silent, but let me know if you're still experiencing this issue and we can reopen it.
Describe the bug
Following the instructions here and later running
npm run deploy
results in this error:If I changed
url: `${config.siteUrl + location.pathname}`,
tourl: `${data.site.siteMetadata.siteUrl + location.pathname}`,
` it deploys but the comments don't load, saying:We were unable to load Disqus. If you are a moderator please see our troubleshooting guide.
My repo. I have already set up a site in Disqus admin setting and set a trusted domain to erikmartinessanches.github.io.
Specifications: