Unverified Commit 02f46f02 authored by Sukka's avatar Sukka Committed by GitHub

fix(#38090): add missing `analyticsId` to config schema (#38911)

parent 0f99768f
...@@ -16,6 +16,9 @@ const configSchema = { ...@@ -16,6 +16,9 @@ const configSchema = {
}, },
type: 'object', type: 'object',
}, },
analyticsId: {
type: 'string',
},
assetPrefix: { assetPrefix: {
minLength: 1, minLength: 1,
type: 'string', type: 'string',
......
...@@ -271,6 +271,15 @@ export interface NextConfig extends Record<string, any> { ...@@ -271,6 +271,15 @@ export interface NextConfig extends Record<string, any> {
/** @see [Compression documentation](https://nextjs.org/docs/api-reference/next.config.js/compression) */ /** @see [Compression documentation](https://nextjs.org/docs/api-reference/next.config.js/compression) */
compress?: boolean compress?: boolean
/**
* The field should only be used when a Next.js project is not hosted on Vercel while using Vercel Analytics.
* Vercel provides zero-configuration analytics for Next.js projects hosted on Vercel.
*
* @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) */ /** @see [Disabling x-powered-by](https://nextjs.org/docs/api-reference/next.config.js/disabling-x-powered-by) */
poweredByHeader?: boolean poweredByHeader?: boolean
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment