Skip to content

Commit bd0448c

Browse files
authoredMay 18, 2021
Make next.config.js keys optional (#25204)
## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added ## Description These values should be optional and not required on the `NextConfig` type.
1 parent 0a31a92 commit bd0448c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed
 

‎packages/next/next-server/server/config-shared.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@ export type NextConfig = { [key: string]: any } & {
5757
validator?: string
5858
skipValidation?: boolean
5959
}
60-
turboMode: boolean
60+
turboMode?: boolean
6161
eslint?: boolean
62-
reactRoot: boolean
63-
enableBlurryPlaceholder: boolean
64-
disableOptimizedLoading: boolean
65-
gzipSize: boolean
62+
reactRoot?: boolean
63+
enableBlurryPlaceholder?: boolean
64+
disableOptimizedLoading?: boolean
65+
gzipSize?: boolean
6666
}
6767
}
6868

‎packages/next/next-server/server/next-server.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ export default class Server {
157157
images: string
158158
fontManifest: FontManifest
159159
optimizeImages: boolean
160-
disableOptimizedLoading: boolean
160+
disableOptimizedLoading?: boolean
161161
optimizeCss: any
162162
locale?: string
163163
locales?: string[]

0 commit comments

Comments
 (0)
Please sign in to comment.