Skip to content

Commit

Permalink
Add <PublicEnvScript /> to RootLayout to make next-runtime-env work
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasdax98 committed Jul 31, 2024
1 parent 96173ce commit f15b3c1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions site/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { ResponsiveSpacingStyle } from "@src/util/ResponsiveSpacingStyle";
import StyledComponentsRegistry from "@src/util/StyledComponentsRegistry";
import type { Metadata } from "next";
import { draftMode } from "next/headers";
import { PublicEnvScript } from "next-runtime-env";

export const metadata: Metadata = {
title: "Comet Starter",
Expand All @@ -16,6 +17,9 @@ export default async function RootLayout({
}>) {
return (
<html>
<head>
<PublicEnvScript />
</head>
<body>
<StyledComponentsRegistry>
<GlobalStyle />
Expand Down

0 comments on commit f15b3c1

Please sign in to comment.