Skip to content

Commit

Permalink
Merge branch 'canary' into fix-38743
Browse files Browse the repository at this point in the history
  • Loading branch information
kodiakhq[bot] committed Jul 21, 2022
2 parents 3615bd9 + fe4b711 commit edd4b40
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
9 changes: 8 additions & 1 deletion packages/next/server/config-schema.ts
Expand Up @@ -333,7 +333,14 @@ const configSchema = {
type: 'boolean',
},
optimizeCss: {
type: 'boolean',
oneOf: [
{
type: 'boolean',
},
{
type: 'object',
},
] as any,
},
outputFileTracingRoot: {
minLength: 1,
Expand Down
5 changes: 4 additions & 1 deletion packages/next/server/config-shared.ts
Expand Up @@ -94,7 +94,10 @@ export interface ExperimentalConfig {
isrFlushToDisk?: boolean
workerThreads?: boolean
pageEnv?: boolean
optimizeCss?: boolean
// optimizeCss can be boolean or critters' option object
// Use Record<string, unknown> as critters doesn't export its Option type
// https://github.com/GoogleChromeLabs/critters/blob/a590c05f9197b656d2aeaae9369df2483c26b072/packages/critters/src/index.d.ts
optimizeCss?: boolean | Record<string, unknown>
nextScriptWorkers?: boolean
scrollRestoration?: boolean
externalDir?: boolean
Expand Down

0 comments on commit edd4b40

Please sign in to comment.