perf: Move runtime redirects to build-time redirects in next.config.js (#23325)

* routing forms

* auth new

* settings route

* apps installed

* next.config.js
This commit is contained in:
Benny Joo authored and GitHub committed 2025-08-26 20:20:12 +09:00
1 parent 4599740637
commit 2922c8fe77
6 files changed
+15 -44

No files matched your search

@@ -1,7 +0,0 @@
import { redirect } from "next/navigation";
const Page = () => {
redirect("/apps/installed/calendar");
};
export default Page;
@@ -1,7 +0,0 @@
import { redirect } from "next/navigation";
const ServerPage = async () => {
redirect("/apps/routing-forms/forms");
};
export default ServerPage;
@@ -1,17 +0,0 @@
import { _generateMetadata } from "app/_utils";
import { redirect } from "next/navigation";
export const generateMetadata = async () =>
await _generateMetadata(
(t) => t("apps"),
(t) => t("admin_apps_description"),
undefined,
undefined,
"/settings/admin/apps"
);
const Page = () => {
redirect("/settings/admin/apps/calendar");
};
export default Page;
-5
View File
@@ -1,5 +0,0 @@
import { redirect } from "next/navigation";
export default function Page() {
redirect(process.env.NEXT_PUBLIC_WEBAPP_URL || "https://app.cal.com");
}
-7
View File
@@ -1,7 +0,0 @@
import { redirect } from "next/navigation";
const Page = () => {
redirect("/apps/routing-forms/forms");
};
export default Page;