Unverified Commit bd0448c3 authored by Pepijn Senders's avatar Pepijn Senders Committed by GitHub

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.
parent 0a31a92a
...@@ -57,12 +57,12 @@ export type NextConfig = { [key: string]: any } & { ...@@ -57,12 +57,12 @@ export type NextConfig = { [key: string]: any } & {
validator?: string validator?: string
skipValidation?: boolean skipValidation?: boolean
} }
turboMode: boolean turboMode?: boolean
eslint?: boolean eslint?: boolean
reactRoot: boolean reactRoot?: boolean
enableBlurryPlaceholder: boolean enableBlurryPlaceholder?: boolean
disableOptimizedLoading: boolean disableOptimizedLoading?: boolean
gzipSize: boolean gzipSize?: boolean
} }
} }
......
...@@ -157,7 +157,7 @@ export default class Server { ...@@ -157,7 +157,7 @@ export default class Server {
images: string images: string
fontManifest: FontManifest fontManifest: FontManifest
optimizeImages: boolean optimizeImages: boolean
disableOptimizedLoading: boolean disableOptimizedLoading?: boolean
optimizeCss: any optimizeCss: any
locale?: string locale?: string
locales?: string[] locales?: string[]
......
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