From 3de0bdf71399a6500813a129014afceb7a92985c Mon Sep 17 00:00:00 2001 From: Mosaad Date: Thu, 21 Jul 2022 23:21:24 +0200 Subject: [PATCH] typos --- packages/next/server/config.ts | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/packages/next/server/config.ts b/packages/next/server/config.ts index b982bbf20a62..b697ab1e4a56 100644 --- a/packages/next/server/config.ts +++ b/packages/next/server/config.ts @@ -372,9 +372,7 @@ function assignDefaults(userConfig: { [key: string]: any }) { (!Number.isInteger(images.minimumCacheTTL) || images.minimumCacheTTL < 0) ) { throw new Error( - `Specified images.minimumCacheTTL should be an integer 0 or more - ', ' - )}), received (${images.minimumCacheTTL}).\nSee more info here: https://nextjs.org/docs/messages/invalid-images-config` + `Specified images.minimumCacheTTL should be an integer 0 or more received (${images.minimumCacheTTL}).\nSee more info here: https://nextjs.org/docs/messages/invalid-images-config` ) } @@ -409,9 +407,7 @@ function assignDefaults(userConfig: { [key: string]: any }) { typeof images.dangerouslyAllowSVG !== 'boolean' ) { throw new Error( - `Specified images.dangerouslyAllowSVG should be a boolean - ', ' - )}), received (${images.dangerouslyAllowSVG}).\nSee more info here: https://nextjs.org/docs/messages/invalid-images-config` + `Specified images.dangerouslyAllowSVG should be a boolean received (${images.dangerouslyAllowSVG}).\nSee more info here: https://nextjs.org/docs/messages/invalid-images-config` ) } @@ -420,9 +416,7 @@ function assignDefaults(userConfig: { [key: string]: any }) { typeof images.contentSecurityPolicy !== 'string' ) { throw new Error( - `Specified images.contentSecurityPolicy should be a string - ', ' - )}), received (${images.contentSecurityPolicy}).\nSee more info here: https://nextjs.org/docs/messages/invalid-images-config` + `Specified images.contentSecurityPolicy should be a string received (${images.contentSecurityPolicy}).\nSee more info here: https://nextjs.org/docs/messages/invalid-images-config` ) }