From 9780e9349b5c84ba6404dc33347186d0fb5f453d Mon Sep 17 00:00:00 2001 From: DuroCodes Date: Tue, 7 May 2024 17:02:44 -0400 Subject: [PATCH] feat: add DISCORD_URL constant --- astro.config.mjs | 3 ++- src/pages/discord.astro | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index e5aa3f07c..34da8c9e1 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -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/', diff --git a/src/pages/discord.astro b/src/pages/discord.astro index efb638367..70559afe0 100644 --- a/src/pages/discord.astro +++ b/src/pages/discord.astro @@ -1 +1,5 @@ - +--- +import { DISCORD_URL } from '../../astro.config.mjs' +--- + +