Repository Public
1import type { Metadata, Viewport } from "next";2import "./globals.css";34export const metadata: Metadata = {5 title: { default: "SP TV", template: "%s · SP TV" },6 description: "Télévision personnelle — tv.spboucher.ai",7 manifest: "/manifest.webmanifest",8 icons: { icon: [{ url: "/icons/icon.svg", type: "image/svg+xml" }, { url: "/icons/icon-192.png", sizes: "192x192" }], apple: "/icons/apple-touch-icon.png" },9 appleWebApp: { capable: true, title: "SP TV", statusBarStyle: "black-translucent" },10 robots: { index: false, follow: false },11};12export const viewport: Viewport = { width: "device-width", initialScale: 1, viewportFit: "cover", themeColor: "#0a0a0b" };1314// The service worker only makes the app installable and caches static assets; it never touches streams or the API.15const sw = `if("serviceWorker" in navigator)addEventListener("load",function(){navigator.serviceWorker.register("/sw.js").catch(function(){})})`;1617export default function RootLayout({ children }: { children: React.ReactNode }) {18 return (19 <html lang="fr-CA">20 <body>{children}<script dangerouslySetInnerHTML={{ __html: sw }} /></body>21 </html>22 );23}24