[READ-ONLY] Mirror of https://github.com/danielroe/roe.dev. This is the code and content for my personal website, built in Nuxt. roe.dev
0

Configure Feed

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

roe.dev / server / api / sponsors.get.ts
310 B 12 lines
1import { getSponsors } from '../utils/sponsors' 2 3export default defineEventHandler( 4 async event => { 5 if (import.meta.test) return [] 6 7 const sponsors = await getSponsors(event) 8 return sponsors 9 .map(s => s.avatarUrl?.replace(/(\?|%3Fu).*$/, '')) 10 .filter((r): r is string => !!r) 11 }, 12)