Skip to content

Commit

Permalink
Make next.config.js keys optional (#25204)
Browse files Browse the repository at this point in the history
## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added

## Description

These values should be optional and not required on the `NextConfig` type.
  • Loading branch information
PepijnSenders committed May 18, 2021
1 parent 0a31a92 commit bd0448c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions packages/next/next-server/server/config-shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ export type NextConfig = { [key: string]: any } & {
validator?: string
skipValidation?: boolean
}
turboMode: boolean
turboMode?: boolean
eslint?: boolean
reactRoot: boolean
enableBlurryPlaceholder: boolean
disableOptimizedLoading: boolean
gzipSize: boolean
reactRoot?: boolean
enableBlurryPlaceholder?: boolean
disableOptimizedLoading?: boolean
gzipSize?: boolean
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/next/next-server/server/next-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export default class Server {
images: string
fontManifest: FontManifest
optimizeImages: boolean
disableOptimizedLoading: boolean
disableOptimizedLoading?: boolean
optimizeCss: any
locale?: string
locales?: string[]
Expand Down

0 comments on commit bd0448c

Please sign in to comment.