Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
02f46f02
Unverified
Commit
02f46f02
authored
Jul 22, 2022
by
Sukka
Committed by
GitHub
Jul 22, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(#38090): add missing `analyticsId` to config schema (#38911)
parent
0f99768f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
config-schema.ts
packages/next/server/config-schema.ts
+3
-0
config-shared.ts
packages/next/server/config-shared.ts
+9
-0
No files found.
packages/next/server/config-schema.ts
View file @
02f46f02
...
@@ -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'
,
...
...
packages/next/server/config-shared.ts
View file @
02f46f02
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment