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>
44 lines
1.3 KiB
TypeScript
44 lines
1.3 KiB
TypeScript
import type { Metadata } from "next";
|
|
import { api } from "@community/lib/api";
|
|
import type { Destination, Visa } from "@community/lib/types";
|
|
import MovePlanClient from "@community/components/MovePlanClient";
|
|
import SiteShell from "@community/components/SiteShell";
|
|
|
|
export const metadata: Metadata = {
|
|
title: "旅居计划中心 · nomadro",
|
|
description: "多城时间轴、预算与月均、签证停留提醒、出发就绪清单、日历导出——一页做完旅居规划",
|
|
openGraph: {
|
|
title: "旅居计划中心 · nomadro",
|
|
description: "时间轴、签证、预算与就绪清单——真正能执行的旅居计划",
|
|
url: "/plan",
|
|
type: "website",
|
|
},
|
|
twitter: {
|
|
card: "summary_large_image",
|
|
title: "旅居计划中心 · nomadro",
|
|
description: "时间轴、签证、预算与就绪清单——真正能执行的旅居计划",
|
|
},
|
|
};
|
|
|
|
export const revalidate = 60;
|
|
|
|
export default async function PlanPage() {
|
|
let destinations: Destination[] = [];
|
|
let visas: Visa[] = [];
|
|
try {
|
|
[destinations, visas] = await Promise.all([api.getDestinations(), api.getVisas()]);
|
|
} catch {
|
|
try {
|
|
destinations = await api.getDestinations();
|
|
} catch {
|
|
destinations = [];
|
|
}
|
|
}
|
|
|
|
return (
|
|
<SiteShell showFooter>
|
|
<MovePlanClient destinations={destinations} visas={visas} />
|
|
</SiteShell>
|
|
);
|
|
}
|