From e53b94c97983085f0da4e92b32977ed34a25ec5d Mon Sep 17 00:00:00 2001 From: iCrawl Date: Fri, 5 May 2023 21:21:09 +0200 Subject: [PATCH] chore: remove cron --- apps/website/src/app/api/cron/route.ts | 29 -------------------------- unocss.config.ts | 3 +++ 2 files changed, 3 insertions(+), 29 deletions(-) delete mode 100644 apps/website/src/app/api/cron/route.ts diff --git a/apps/website/src/app/api/cron/route.ts b/apps/website/src/app/api/cron/route.ts deleted file mode 100644 index a6313f992..000000000 --- a/apps/website/src/app/api/cron/route.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { get } from '@vercel/edge-config'; -import { NextResponse } from 'next/server'; - -export const runtime = 'edge'; - -export async function GET() { - try { - const url = await get('DISCORD_WEBHOOK_URL'); - const imageUrl = await get('IT_IS_WEDNESDAY_MY_DUDES'); - if (url && imageUrl) { - await fetch(url, { - method: 'POST', - headers: { 'Content-Type': 'application/json' }, - body: JSON.stringify({ - username: 'It is wednesday, my dudes', - embeds: [ - { - image: { - url: imageUrl, - }, - }, - ], - }), - }); - } - } catch {} - - return NextResponse.json({ message: 'It is wednesday, my dudes' }); -} diff --git a/unocss.config.ts b/unocss.config.ts index e822c915a..9288aa31f 100644 --- a/unocss.config.ts +++ b/unocss.config.ts @@ -47,6 +47,9 @@ export default defineConfig({ 'a > img': { display: 'inline-block', }, + 'a > img[height="44"]': { + height: '44px', + }, h1: { display: 'flex', 'place-items': 'center',