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 } & {
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
}
}
......
......@@ -157,7 +157,7 @@ export default class Server {
images: string
fontManifest: FontManifest
optimizeImages: boolean
disableOptimizedLoading: boolean
disableOptimizedLoading?: boolean
optimizeCss: any
locale?: 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