Skip to content

Commit

Permalink
chore(config): enable Vssue in Prod only
Browse files Browse the repository at this point in the history
  • Loading branch information
kenberkeley committed Jan 9, 2022
1 parent 92cba51 commit 23c7390
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ dayjs.locale('zh-cn')
const safeExternalLinkGen = require('./_utils/safeExternalLinkGen')
const extractPermalinkFromPost = require('./_utils/extractPermalinkFromPost')

const isProd = process.env.NODE_ENV === 'production'

const TITLE = 'Aussie Coder 土澳码农'
const HOSTNAME = 'https://kenberkeley.github.io'
const ISSUES = { text: 'Issues', link: 'https://github.com/kenberkeley/blog/issues' }
Expand Down Expand Up @@ -108,7 +110,7 @@ module.exports = ctx => ({
`If any suggestions or questions, please raise in ${safeExternalLinkGen(ISSUES)}`
},
lastUpdated: true,
comments: {
comments: isProd && {
platform: 'github',
owner: 'kenberkeley',
repo: 'blog',
Expand Down

0 comments on commit 23c7390

Please sign in to comment.