Skip to content

Giscus do not show when self-hosting #705

Answered by laymonage
shenweiyan asked this question in Q&A
Discussion options

You must be logged in to vote

GitHub Pages won't work because the site uses SSR.

As for the error, where are you seeing that? On the homepage? If so, you need to install your self-hosted instance on your repository and change these configuration values according to your repository:

giscus/pages/index.tsx

Lines 144 to 157 in 75f1a57

<Script
src="/client.js"
data-repo="giscus/giscus"
data-repo-id="MDEwOlJlcG9zaXRvcnkzNTE5NTgwNTM="
data-category-id="MDE4OkRpc2N1c3Npb25DYXRlZ29yeTMyNzk2NTc1"
data-mapping="specific"
data-term="Welcome to giscus!"
data-theme="preferred_color_scheme"
data-reactions-enabled="1"
data-emit-metadata="0"
data-input-position="bottom"

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@shenweiyan
Comment options

Answer selected by shenweiyan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants