import { readFileSync } from "fs";
import { join } from "path";

function load(filename: string): string {
  try {
    const buf = readFileSync(join(process.cwd(), "public", filename));
    return `data:image/png;base64,${buf.toString("base64")}`;
  } catch {
    return "";
  }
}

// Loaded once per cold start — safe for server-only API routes
export const LOGO_LIGHT = load("meseo-logo.png");       // dark text (for white bg)
export const LOGO_DARK = load("meseo-logo-dark.png");   // light text (for dark bg)
