We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af4b963 commit ce5f781Copy full SHA for ce5f781
2 files changed
src/components/PostComment/PostComment.vue
@@ -2,6 +2,7 @@
2
import { computed } from "vue";
3
import { useData } from "vitepress";
4
import Giscus from "@giscus/vue";
5
+import { isProduction } from "@/constants/env";
6
7
const GISCUS = {
8
repo: "toothlessdev/toothlessdev.github.io",
@@ -18,7 +19,7 @@ const uiLang = computed(() => (lang.value?.startsWith("ko") ? "ko" : "en"));
18
19
</script>
20
21
<template>
- <div class="giscus-comments">
22
+ <div class="giscus-comments" v-if="isProduction">
23
<Giscus
24
class="giscus"
25
:repo="GISCUS.repo"
src/constants/env.ts
@@ -0,0 +1 @@
1
+export const isProduction = process.env.NODE_ENV === "production";
0 commit comments