feat: add DISCORD_URL constant

This commit is contained in:
DuroCodes
2024-05-07 17:02:44 -04:00
parent 01164761a9
commit 9780e9349b
2 changed files with 7 additions and 2 deletions

View File

@@ -5,13 +5,14 @@ import tailwind from "@astrojs/tailwind";
import starlightTypeDoc, { typeDocSidebarGroup } from 'starlight-typedoc';
export const GITHUB_URL = 'https://github.com/sern-handler';
export const DISCORD_URL = 'https://discord.gg/DwbF5H5JgQ';
export default defineConfig({
integrations: [starlight({
title: 'sern',
social: {
github: GITHUB_URL,
discord: 'https://discord.gg/DwbF5H5JgQ',
discord: DISCORD_URL,
},
editLink: {
baseUrl: GITHUB_URL + '/website/edit/main/',

View File

@@ -1 +1,5 @@
<meta http-equiv="refresh" content="0; url=https://discord.gg/DwbF5H5JgQ" />
---
import { DISCORD_URL } from '../../astro.config.mjs'
---
<meta http-equiv="refresh" content={`0; url=${DISCORD_URL}`} />