wwf
3 天以前 a430284aa21e3ae1f0d5654e55b2ad2852519cc2
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 (
    <>