From a430284aa21e3ae1f0d5654e55b2ad2852519cc2 Mon Sep 17 00:00:00 2001 From: wwf <yearningwang@iqtogether.com> Date: 星期三, 04 六月 2025 15:17:49 +0800 Subject: [PATCH] 初始化 --- app/components/base/ga/index.tsx | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/components/base/ga/index.tsx b/app/components/base/ga/index.tsx index 7a95561..0015edb 100644 --- a/app/components/base/ga/index.tsx +++ b/app/components/base/ga/index.tsx @@ -1,7 +1,7 @@ import type { FC } from 'react' import React from 'react' import Script from 'next/script' -import { type UnsafeUnwrappedHeaders, headers } from 'next/headers' +import { headers } from 'next/headers' import { IS_CE_EDITION } from '@/config' export enum GaType { @@ -24,7 +24,7 @@ if (IS_CE_EDITION) return null - const nonce = process.env.NODE_ENV === 'production' ? (headers() as unknown as UnsafeUnwrappedHeaders).get('x-nonce') : '' + const nonce = process.env.NODE_ENV === 'production' ? headers().get('x-nonce') : '' return ( <> -- Gitblit v1.8.0