We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9dcbe2b commit 99f819aCopy full SHA for 99f819a
packages/hooks/docs/.vitepress/theme/home/TeamMember.vue
@@ -6,6 +6,8 @@
6
defineProps<{
7
data: CoreTeam
8
}>()
9
+
10
+ const isProduction = process.env.NODE_ENV === 'production'
11
</script>
12
13
<template>
@@ -74,7 +76,12 @@
74
76
<div class="code">
75
77
<img class="icon" :src="funcIcon" alt="" />
78
<div class="code-container">
- <a v-for="f of data.functions" :key="f" :href="`/${f}/`" target="_blank">
79
+ <a
80
+ v-for="f of data.functions"
81
+ :key="f"
82
+ :href="isProduction ? `/docs/hooks/${f}/` : `/${f}/`"
83
+ target="_blank"
84
+ >
85
<code>{{ f }}</code>
86
</a>
87
</div>
0 commit comments