Skip to content

Commit 790b76d

Browse files
committed
docs add /chat redirect
1 parent 583ba35 commit 790b76d

5 files changed

Lines changed: 23 additions & 4 deletions

File tree

docs/app/app.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export default defineAppConfig({
4848
},
4949
{
5050
'icon': 'i-simple-icons-discord',
51-
'to': 'https://discord.gg/bnH3KPzfpr',
51+
'to': '/chat',
5252
'target': '_blank',
5353
'aria-label': 'Devframe on Discord',
5454
},
@@ -78,7 +78,7 @@ export default defineAppConfig({
7878
},
7979
{
8080
'icon': 'i-simple-icons-discord',
81-
'to': 'https://discord.gg/bnH3KPzfpr',
81+
'to': '/chat',
8282
'target': '_blank',
8383
'aria-label': 'Devframe on Discord',
8484
},

docs/app/pages/chat.vue

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<script setup lang="ts">
2+
// Fallback for hosts that don't apply the /chat redirect from vercel.json (e.g. local dev).
3+
const DISCORD_INVITE_URL = 'https://discord.com/invite/bnH3KPzfpr'
4+
5+
definePageMeta({
6+
layout: false,
7+
})
8+
9+
useRobotsRule('noindex, nofollow')
10+
11+
onMounted(() => {
12+
window.location.replace(DISCORD_INVITE_URL)
13+
})
14+
</script>
15+
16+
<template>
17+
<div />
18+
</template>

docs/content/9.posts/1.pluggable-extensible-playful-devtools.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,5 +401,5 @@ And thanks to [Vercel](https://vercel.com) for supporting these projects and bri
401401
---
402402
icon: i-lucide-star
403403
---
404-
Enjoying Devframe? [Give the repo a star on GitHub](https://github.com/devframes/devframe) and [join us on Discord](https://discord.gg/bnH3KPzfpr) to follow along and take part in the discussion.
404+
Enjoying Devframe? [Give the repo a star on GitHub](https://github.com/devframes/devframe) and [join us on Discord](/chat){target="_blank"} to follow along and take part in the discussion.
405405
::

docs/content/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ A framework-neutral foundation for devtools. One definition becomes a Web Standa
5959
color: neutral
6060
variant: ghost
6161
size: lg
62-
to: https://discord.gg/bnH3KPzfpr
62+
to: /chat
6363
target: _blank
6464
---
6565
Join Discord

docs/vercel.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"installCommand": "pnpm install --frozen-lockfile",
66
"ignoreCommand": "git diff --quiet HEAD^ HEAD -- ':!content'",
77
"redirects": [
8+
{ "source": "/chat", "destination": "https://discord.com/invite/bnH3KPzfpr", "permanent": false },
89
{ "source": "/guide/terms", "destination": "/references/terms", "permanent": true },
910
{ "source": "/guide/when-clauses", "destination": "/references/when-clauses", "permanent": true },
1011
{ "source": "/guide/events", "destination": "/references/events", "permanent": true },

0 commit comments

Comments
 (0)