Improve MineGeo UI and application flows
Some checks failed
Deploy MineGeo to Dokploy / deploy (push) Failing after 2m37s

This commit is contained in:
2026-10-18 11:44:04 +05:00
parent ad73132f15
commit a7085e4e80
50 changed files with 4790 additions and 703 deletions

View File

@@ -1,6 +1,8 @@
import { timingSafeEqual } from "node:crypto";
import { NextRequest, NextResponse } from "next/server";
import { dispatchDiscordAnnouncements } from "@/lib/discord-announcements";
import { dispatchTournamentAnnouncements } from "@/lib/tournament-discord";
import { admin, required } from "@/lib/supabase";
export const runtime = "nodejs";
export const dynamic = "force-dynamic";
export const maxDuration = 300;
@@ -15,6 +17,8 @@ export async function GET(request: NextRequest) {
)
return NextResponse.json({ error: "Unauthorized" }, { status: 401 });
try {
required(await admin().rpc("tick_tournaments"));
await dispatchTournamentAnnouncements(admin());
await dispatchDiscordAnnouncements();
return NextResponse.json(
{ ok: true },