// Build-time checks for optional static assets.
// Astro frontmatter runs at build (SSG), so the filesystem is available here.
import { existsSync } from "node:fs";
import { fileURLToPath } from "node:url";

const publicDir = fileURLToPath(new URL("../../public/", import.meta.url));

/** True only when a real CV has been dropped at public/cv.pdf. */
export const cvAvailable = existsSync(publicDir + "cv.pdf");
