chore: upgrade next and react

This commit is contained in:
Joel
2025-01-26 11:11:51 +08:00
parent 6887b501b8
commit c044cc5160
21 changed files with 1168 additions and 1642 deletions

View File

@ -18,13 +18,13 @@ export type IGAProps = {
gaType: GaType
}
const GA: FC<IGAProps> = ({
const GA: FC<IGAProps> = async ({
gaType,
}) => {
if (IS_CE_EDITION)
return null
const nonce = process.env.NODE_ENV === 'production' ? headers().get('x-nonce') : ''
const nonce = process.env.NODE_ENV === 'production' ? (await headers()).get('x-nonce') : ''
return (
<>