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

@@ -0,0 +1,18 @@
import "server-only";
import { after } from "next/server";
import { admin } from "./supabase";
import { discordConfiguration } from "./discord-client";
import { dispatchTournamentAnnouncements } from "./tournament-discord";
export function tournamentDiscordAfterResponse(target?: string) {
if (!discordConfiguration(process.env).token) return;
after(async () => {
try {
await dispatchTournamentAnnouncements(admin(), process.env, target);
} catch {
console.error(
"Tournament announcement delivery paused; saved announcements will retry.",
);
}
});
}