import type { CompanyInfo } from "@/types/company"; export async function getCompanyInfo(): Promise { const base = process.env.NEXT_PUBLIC_SITE_ORIGIN || process.env.VERCEL_URL || "http://localhost:3000"; const url = new URL("/api/company/info", base).toString(); const res = await fetch(url, { cache: "no-store" }); // ここでキャッシュ方針統一 if (!res.ok) throw new Error("Failed to fetch /api/company/info"); return res.json() as Promise; }