Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

feat(web): add public collection route layout

Richie McIlroy11aede59ebf8
diff --git a/apps/web/app/c/layout.tsx b/apps/web/app/c/layout.tsx
new file mode 100644
index 000000000..8f853e14d
--- /dev/null
+++ b/apps/web/app/c/layout.tsx
@@ -0,0 +1,8 @@
+import type { PropsWithChildren } from "react";
+import { AppProviders } from "../Layout/AppProviders";
+
+export const dynamic = "force-dynamic";
+
+export default function CollectionsLayout({ children }: PropsWithChildren) {
+ return <AppProviders>{children}</AppProviders>;
+}
diff --git a/apps/web/app/c/page.tsx b/apps/web/app/c/page.tsx
new file mode 100644
index 000000000..dd90e99cc
--- /dev/null
+++ b/apps/web/app/c/page.tsx
@@ -0,0 +1,5 @@
+import { redirect } from "next/navigation";
+
+export default async function CollectionsPage() {
+ redirect("/");
+}