Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

hotfix(frontend): use server redirect (#11900)

Ubbee6438b9a764d
diff --git a/autogpt_platform/frontend/src/app/page.tsx b/autogpt_platform/frontend/src/app/page.tsx
index 9a55e986bc..88e4e21644 100644
--- a/autogpt_platform/frontend/src/app/page.tsx
+++ b/autogpt_platform/frontend/src/app/page.tsx
@@ -1,7 +1,4 @@
-"use client";
-
-import { useRouter } from "next/navigation";
-import { useEffect } from "react";
+import { redirect } from "next/navigation";
/**
* Root page always redirects to /copilot.
@@ -10,11 +7,5 @@ import { useEffect } from "react";
* See: SECRT-1845
*/
export default function Page() {
- const router = useRouter();
-
- useEffect(() => {
- router.replace("/copilot");
- }, [router]);
-
- return null;
+ redirect("/copilot");
}