feat(layout): add Script component for Google Cast framework integration

This commit is contained in:
2026-03-14 02:29:11 +01:00
parent da714840ee
commit 6c14c8f491

View File

@@ -2,6 +2,7 @@ import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google";
import "./globals.css";
import { Providers } from "./providers";
import Script from "next/script";
const geistSans = Geist({
variable: "--font-geist-sans",
@@ -15,7 +16,8 @@ const geistMono = Geist_Mono({
export const metadata: Metadata = {
title: "K-TV",
description: "Self-hosted linear TV channel orchestration for your media library",
description:
"Self-hosted linear TV channel orchestration for your media library",
};
export default function RootLayout({
@@ -25,6 +27,12 @@ export default function RootLayout({
}>) {
return (
<html lang="en">
<head>
<Script
src="https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1"
strategy="beforeInteractive"
/>
</head>
<body
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
>