import type { MetadataRoute } from "next";

const BASE_PATH = process.env.NEXT_PUBLIC_BASE_PATH || "";

export default function manifest(): MetadataRoute.Manifest {
  return {
    name: "Doliplay — Watch. Listen. Discover.",
    short_name: "Doliplay",
    description: "Doliplay is a video, shorts, and music streaming platform.",
    start_url: `${BASE_PATH}/`,
    display: "standalone",
    orientation: "portrait",
    theme_color: "#fc0000",
    background_color: "#1a1a2e",
    icons: [
      {
        src: `${BASE_PATH}/android-icon-36x36.png`,
        sizes: "36x36",
        type: "image/png",
      },
      {
        src: `${BASE_PATH}/android-icon-48x48.png`,
        sizes: "48x48",
        type: "image/png",
      },
      {
        src: `${BASE_PATH}/android-icon-72x72.png`,
        sizes: "72x72",
        type: "image/png",
      },
      {
        src: `${BASE_PATH}/android-icon-96x96.png`,
        sizes: "96x96",
        type: "image/png",
      },
      {
        src: `${BASE_PATH}/android-icon-144x144.png`,
        sizes: "144x144",
        type: "image/png",
      },
      {
        src: `${BASE_PATH}/android-icon-192x192.png`,
        sizes: "192x192",
        type: "image/png",
        purpose: "maskable",
      },
    ],
  };
}
