The weeb for the next gen discord boat - Wamellow wamellow.com
bot discord
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

add dynamic assets

Luna a738628f 39e0541c

+31 -6
+10
app/(dynamic-assets)/luna-small.webp/route.ts
··· 1 + import { getUser } from "@/lib/discord/user"; 2 + 3 + export async function GET() { 4 + const user = await getUser("821472922140803112"); 5 + 6 + return await fetch(user?.avatarUrl 7 + ? user.avatarUrl + "?size=64" 8 + : "https://cdn.discordapp.com/embed/avatars/5.png" 9 + ); 10 + }
+10
app/(dynamic-assets)/luna.webp/route.ts
··· 1 + import { getUser } from "@/lib/discord/user"; 2 + 3 + export async function GET() { 4 + const user = await getUser("821472922140803112"); 5 + 6 + return await fetch(user?.avatarUrl 7 + ? user.avatarUrl + "?size=1024" 8 + : "https://cdn.discordapp.com/embed/avatars/5.png" 9 + ); 10 + }
+11 -6
app/sitemap.xml/route.ts app/(dynamic-assets)/sitemap.xml/route.ts
··· 1 - import { getCanonicalUrl } from "@/utils/urls"; 2 1 import docsMetadata from "@/public/docs/meta.json"; 2 + import { getCanonicalUrl } from "@/utils/urls"; 3 3 4 - type Sitemap = { 4 + interface Sitemap { 5 5 url: string 6 6 priority: number 7 - }[] 7 + } 8 8 9 9 // Update sitemap only one a day 10 - export const revalidate = 1000 * 60 * 60 * 24; 10 + export const revalidate = 60 * 60 * 24; 11 11 12 - const fetchOptions = { headers: { Authorization: process.env.API_SECRET as string }, next: { revalidate: 60 * 12 } }; 12 + const fetchOptions = { 13 + headers: { 14 + Authorization: process.env.API_SECRET as string 15 + }, 16 + next: { revalidate: 60 * 12 } 17 + }; 13 18 14 19 export async function GET() { 15 20 const uploadIds = await fetch(`${process.env.NEXT_PUBLIC_API}/ai/sitemap`, fetchOptions).then((res) => res.json()) as string[]; ··· 64 69 url: getCanonicalUrl("privacy"), 65 70 priority: 0.2 66 71 } 67 - ] as Sitemap; 72 + ] satisfies Sitemap[]; 68 73 69 74 for (const page of docsMetadata.pages) sitemap.push({ url: getCanonicalUrl("docs", page.file.split(".")[0]), priority: 0.6 }); 70 75 for (const guildId of guildIds) sitemap.push({ url: getCanonicalUrl("leaderboard", guildId), priority: 0.5 });
public/luna-small.webp

This is a binary file and will not be displayed.

public/luna.webp

This is a binary file and will not be displayed.