Skip to content

Commit

Permalink
fix(#38090): add missing analyticsId to config schema
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW committed Jul 22, 2022
1 parent 0f99768 commit 4a1cb4a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/next/server/config-schema.ts
Expand Up @@ -16,6 +16,9 @@ const configSchema = {
},
type: 'object',
},
analyticsId: {
type: 'string',
},
assetPrefix: {
minLength: 1,
type: 'string',
Expand Down
9 changes: 9 additions & 0 deletions packages/next/server/config-shared.ts
Expand Up @@ -271,6 +271,15 @@ export interface NextConfig extends Record<string, any> {
/** @see [Compression documentation](https://nextjs.org/docs/api-reference/next.config.js/compression) */
compress?: boolean

/**
* The field should only be used when a Next.js project is not hosted on Vercel while using Vercel Analytics.
* By default Vercel provides zero-configuration analytics for hosted Next.js projects.
*
* @default ''
* @see [Next.js Analytics](https://nextjs.org/analytics)
*/
analyticsId?: string

/** @see [Disabling x-powered-by](https://nextjs.org/docs/api-reference/next.config.js/disabling-x-powered-by) */
poweredByHeader?: boolean

Expand Down

0 comments on commit 4a1cb4a

Please sign in to comment.