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>
30 lines
848 B
TypeScript
30 lines
848 B
TypeScript
import type { Metadata } from "next";
|
|
import { api } from "@community/lib/api";
|
|
import SiteShell from "@community/components/SiteShell";
|
|
import NextStopClient from "@community/components/NextStopClient";
|
|
|
|
export const metadata: Metadata = {
|
|
title: "下一站决策 · nomadro",
|
|
description: "根据预算、网络、气候和偏好,智能推荐下一座旅居城市与路线。",
|
|
};
|
|
|
|
export const revalidate = 60;
|
|
|
|
export default async function NextStopPage() {
|
|
const [destinations, meetups, routes] = await Promise.all([
|
|
api.getDestinations().catch(() => []),
|
|
api.getMeetups().catch(() => []),
|
|
api.getRoutes().catch(() => []),
|
|
]);
|
|
|
|
return (
|
|
<SiteShell showFooter>
|
|
<NextStopClient
|
|
destinations={destinations}
|
|
initialMeetups={meetups}
|
|
initialRoutes={routes}
|
|
/>
|
|
</SiteShell>
|
|
);
|
|
}
|