From 849c8bc609c51452837320dd866d77c7d4052eba Mon Sep 17 00:00:00 2001 From: cfngc4594 Date: Sun, 9 Mar 2025 18:21:27 +0800 Subject: [PATCH] feat(page): deprecate /playground and redirect to /problemset --- src/app/(app)/playground/@workspace/@editor/page.tsx | 5 +++-- src/app/(app)/playground/page.tsx | 5 +++++ 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 src/app/(app)/playground/page.tsx diff --git a/src/app/(app)/playground/@workspace/@editor/page.tsx b/src/app/(app)/playground/@workspace/@editor/page.tsx index 453b337..d863301 100644 --- a/src/app/(app)/playground/@workspace/@editor/page.tsx +++ b/src/app/(app)/playground/@workspace/@editor/page.tsx @@ -1,5 +1,6 @@ -import CodeEditor from "@/components/code-editor"; +// import CodeEditor from "@/components/code-editor"; export default function WorkspaceEditorPage() { - return ; + // return ; + return null; } diff --git a/src/app/(app)/playground/page.tsx b/src/app/(app)/playground/page.tsx new file mode 100644 index 0000000..a3f4217 --- /dev/null +++ b/src/app/(app)/playground/page.tsx @@ -0,0 +1,5 @@ +import { redirect } from "next/navigation"; + +export default function PlaygroundPage() { + redirect("/problemset"); +}