From adccdeddd3b13302afd334457485d92b7f8c62be Mon Sep 17 00:00:00 2001 From: arsam Date: Fri, 18 Sep 2026 23:10:25 +0330 Subject: [PATCH] Import source: src/app/(panel)/[...slug]/page Import the existing local project snapshot. This commit organizes existing files; it does not represent newly developed functionality. --- src/app/(panel)/[...slug]/page.tsx | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/app/(panel)/[...slug]/page.tsx diff --git a/src/app/(panel)/[...slug]/page.tsx b/src/app/(panel)/[...slug]/page.tsx new file mode 100644 index 0000000..e6c9829 --- /dev/null +++ b/src/app/(panel)/[...slug]/page.tsx @@ -0,0 +1,17 @@ +import { notFound } from "next/navigation"; +import { FeaturePage } from "@/components/features/feature-page"; +import { routeItems } from "@/lib/routes"; + +export default async function PanelRoute({ params }: { params: Promise<{ slug?: string[] }> }) { + const { slug = [] } = await params; + const path = `/${slug.join("/")}`; + const exact = routeItems.some((route) => route.path === path); + const supportedDynamic = + /^\/websites\/[^/]+(\/deployments|\/logs|\/settings)?$/.test(path) || + /^\/domains\/[^/]+(\/dns|\/ssl)?$/.test(path) || + /^\/servers\/[^/]+(\/services|\/processes|\/updates|\/network)?$/.test(path) || + /^\/backups\/[^/]+$/.test(path) || + /^\/automation\/[^/]+$/.test(path); + if (!exact && !supportedDynamic) notFound(); + return ; +}