[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
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)