Utilisation variables d'env

This commit is contained in:
Mathieu Oriol
2025-03-14 18:06:29 +01:00
parent a7e7e076bd
commit 268910c2f3
6 changed files with 26 additions and 8 deletions

View File

@@ -2,6 +2,8 @@ import { Inter } from "next/font/google";
import "./globals.css";
import SocketProvider from "@/context/socketContext";
import { PublicEnvScript } from 'next-runtime-env';
const inter = Inter({ subsets: ["latin"] });
export const metadata = {
@@ -11,6 +13,9 @@ export const metadata = {
export default function RootLayout({ children }) {
return (
<html lang="en">
<head>
<PublicEnvScript />
</head>
<SocketProvider>
<body className={inter.className + " h-screen"}>{children}</body>
</SocketProvider>