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>
21 lines
600 B
TypeScript
21 lines
600 B
TypeScript
import type { Metadata } from "next";
|
|
import { api } from "@community/lib/api";
|
|
import SiteShell from "@community/components/SiteShell";
|
|
import AiAssistantClient from "@community/components/AiAssistantClient";
|
|
|
|
export const metadata: Metadata = {
|
|
title: "AI 旅居助手 · nomadro",
|
|
description: "智能推荐下一站游民城市",
|
|
};
|
|
|
|
export const revalidate = 60;
|
|
|
|
export default async function AiPage() {
|
|
const destinations = await api.getDestinations().catch(() => []);
|
|
return (
|
|
<SiteShell showFooter>
|
|
<AiAssistantClient destinations={destinations} />
|
|
</SiteShell>
|
|
);
|
|
}
|