Skip to content

Commit

Permalink
Fix config schema
Browse files Browse the repository at this point in the history
  • Loading branch information
janicklas-ralph committed Sep 15, 2022
1 parent 9ef2d1c commit cb2837f
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions packages/next/server/config-schema.ts
Expand Up @@ -563,15 +563,22 @@ const configSchema = {
type: 'object',
},
optimizeFonts: {
properties: {
inlineFonts: {
oneOf: [
{
type: 'boolean',
},
experimentalAdjustFallbacks: {
type: 'boolean',
{
properties: {
inlineFonts: {
type: 'boolean',
},
experimentalAdjustFallbacks: {
type: 'boolean',
},
},
type: 'object',
},
},
type: 'object',
] as any,
},
output: {
// automatic typing doesn't like enum
Expand Down

0 comments on commit cb2837f

Please sign in to comment.