import fs from "fs";import path from "path";import { redirect } from "next/navigation";import { env } from "@/env";export default function WorkspacePage() { if (env.NEXT_PUBLIC_STATIC_WEBSITE_ONLY === "true") { const firstThread = fs .readdirSync(path.resolve(process.cwd(), "public/demo/threads"), { withFileTypes: true, }) .find((thread) => thread.isDirectory() && !thread.name.startsWith(".")); if (firstThread) { return redirect(`/workspace/chats/${firstThread.name}`); } } return redirect("/workspace/chats/new");}
There is no specific page to list workspaces but the logic above tells me you are redirected to the first thread or /new route depending on the flag, NEXT_PUBLIC_STATIC_WEBSITE_ONLY