diff --git a/packages/stack/src/components/elements/ssr-layout-effect.tsx b/packages/stack/src/components/elements/ssr-layout-effect.tsx index db7273223..53e08ce05 100644 --- a/packages/stack/src/components/elements/ssr-layout-effect.tsx +++ b/packages/stack/src/components/elements/ssr-layout-effect.tsx @@ -1,7 +1,7 @@ "use client"; import { useLayoutEffect } from "react"; -export function SsrScript(props: { script: string }) { +export function SsrScript(props: { script: string, nonce?: string }) { useLayoutEffect(() => { // TODO fix workaround: React has a bug where it doesn't run the script on the first CSR render if SSR has been skipped due to suspense // As a workaround, we run the script in the