refactor: serve static frontend with Go APIs

This commit is contained in:
brother7 committed 2026-08-16 20:47:45 +08:00
1 parent 763d2f0648
commit b14b4fced7
101 files changed
+963 -3928

No files matched your search

+3 -9
View File
@@ -1,11 +1,5 @@
import { redirect } from "next/navigation";
import { ClientRedirect } from "@/components/browser-auth";
export default async function AdminLoginPage({
searchParams
}: {
searchParams?: Promise<Record<string, string | string[] | undefined>>;
}) {
const params = await searchParams;
const next = Array.isArray(params?.next) ? params?.next[0] : params?.next;
redirect(next ? `/auth/login?next=${encodeURIComponent(next)}` : "/auth/login");
export default function AdminLoginPage() {
return <ClientRedirect to="/auth/login" forwardNext />;
}