From 13aa9d666c14b5a6d39721f42f642f1125d9fc4e Mon Sep 17 00:00:00 2001 From: JJ Kasper Date: Fri, 20 Nov 2020 07:04:18 -0600 Subject: [PATCH] Correct errsh links in config checks (#19280) This makes sure we're using `next.js` in the err.sh links instead of `nextjs` since that leads to a 404 --- packages/next/next-server/server/config.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/next/next-server/server/config.ts b/packages/next/next-server/server/config.ts index 65240c9527..e380e339be 100644 --- a/packages/next/next-server/server/config.ts +++ b/packages/next/next-server/server/config.ts @@ -226,7 +226,7 @@ function assignDefaults(userConfig: { [key: string]: any }) { if (images.domains.length > 50) { throw new Error( - `Specified images.domains exceeds length of 50, received length (${images.domains.length}), please reduce the length of the array to continue.\nSee more info here: https://err.sh/nextjs/invalid-images-config` + `Specified images.domains exceeds length of 50, received length (${images.domains.length}), please reduce the length of the array to continue.\nSee more info here: https://err.sh/next.js/invalid-images-config` ) } @@ -251,7 +251,7 @@ function assignDefaults(userConfig: { [key: string]: any }) { if (deviceSizes.length > 25) { throw new Error( - `Specified images.deviceSizes exceeds length of 25, received length (${deviceSizes.length}), please reduce the length of the array to continue.\nSee more info here: https://err.sh/nextjs/invalid-images-config` + `Specified images.deviceSizes exceeds length of 25, received length (${deviceSizes.length}), please reduce the length of the array to continue.\nSee more info here: https://err.sh/next.js/invalid-images-config` ) } @@ -277,7 +277,7 @@ function assignDefaults(userConfig: { [key: string]: any }) { if (imageSizes.length > 25) { throw new Error( - `Specified images.imageSizes exceeds length of 25, received length (${imageSizes.length}), please reduce the length of the array to continue.\nSee more info here: https://err.sh/nextjs/invalid-images-config` + `Specified images.imageSizes exceeds length of 25, received length (${imageSizes.length}), please reduce the length of the array to continue.\nSee more info here: https://err.sh/next.js/invalid-images-config` ) } @@ -345,7 +345,7 @@ function assignDefaults(userConfig: { [key: string]: any }) { if (typeof i18n.domains !== 'undefined' && !Array.isArray(i18n.domains)) { throw new Error( - `Specified i18n.domains must be an array of domain objects e.g. [ { domain: 'example.fr', defaultLocale: 'fr', locales: ['fr'] } ] received ${typeof i18n.domains}.\nSee more info here: https://err.sh/nextjs/invalid-i18n-config` + `Specified i18n.domains must be an array of domain objects e.g. [ { domain: 'example.fr', defaultLocale: 'fr', locales: ['fr'] } ] received ${typeof i18n.domains}.\nSee more info here: https://err.sh/next.js/invalid-i18n-config` ) } -- GitLab