Replace reverse-proxy/iframe approach with @ebook/@community/@navmini imports under /nav /book /community so localhost:3000 serves all three products directly. Co-authored-by: Cursor <cursoragent@cursor.com>
23 lines
572 B
TypeScript
23 lines
572 B
TypeScript
import type { Metadata } from "next";
|
|
import SiteShell from "@community/components/SiteShell";
|
|
import DigitalLessonClient from "@community/components/DigitalLessonClient";
|
|
|
|
export const metadata: Metadata = {
|
|
title: "课程 · nomadro 学院",
|
|
};
|
|
|
|
export default async function DigitalLessonPage({
|
|
params,
|
|
}: {
|
|
params: Promise<{ m: string; l: string }>;
|
|
}) {
|
|
const { m, l } = await params;
|
|
const mi = Number(m);
|
|
const li = Number(l);
|
|
return (
|
|
<SiteShell showFooter>
|
|
<DigitalLessonClient moduleIndex={mi} lessonIndex={li} />
|
|
</SiteShell>
|
|
);
|
|
}
|