refactor: serve static frontend with Go APIs
This commit is contained in:
1 parent
763d2f0648
commit
b14b4fced7
101 files changed
+963
-3928
No files matched your search
@@ -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 />;
|
||||
}
|
||||
Reference in new issue
Block a user