fixed bug

This commit is contained in:
Amirhossein Mahmoodi
2024-08-13 12:01:50 +03:30
parent 14eb3fdef2
commit 1dd88fabdf

View File

@@ -1,8 +1,7 @@
import { redirect } from "next/navigation";
const prefix = process.env.NODE_ENV === "production" ? "/v3" : "";
function Page() {
redirect(prefix + "/dashboard", "replace");
redirect("/dashboard", "replace");
return null;
}