Unverified Commit fb58d95d authored by Shun Kakinoki's avatar Shun Kakinoki Committed by GitHub

fix: add missing dot to https://err.sh/nextjs (#18652)

Hi next.js team!
Was trying out the canary and came across the error!

The redirect to https://err.sh was to
`https://github.com/vercel/nextjs`, not
`https://github.com/vercel/next.js`
parent 3fd1cc3e
...@@ -220,14 +220,14 @@ function assignDefaults(userConfig: { [key: string]: any }) { ...@@ -220,14 +220,14 @@ function assignDefaults(userConfig: { [key: string]: any }) {
if (typeof images !== 'object') { if (typeof images !== 'object') {
throw new Error( throw new Error(
`Specified images should be an object received ${typeof images}.\nSee more info here: https://err.sh/nextjs/invalid-images-config` `Specified images should be an object received ${typeof images}.\nSee more info here: https://err.sh/next.js/invalid-images-config`
) )
} }
if (images.domains) { if (images.domains) {
if (!Array.isArray(images.domains)) { if (!Array.isArray(images.domains)) {
throw new Error( throw new Error(
`Specified images.domains should be an Array received ${typeof images.domains}.\nSee more info here: https://err.sh/nextjs/invalid-images-config` `Specified images.domains should be an Array received ${typeof images.domains}.\nSee more info here: https://err.sh/next.js/invalid-images-config`
) )
} }
...@@ -244,7 +244,7 @@ function assignDefaults(userConfig: { [key: string]: any }) { ...@@ -244,7 +244,7 @@ function assignDefaults(userConfig: { [key: string]: any }) {
throw new Error( throw new Error(
`Specified images.domains should be an Array of strings received invalid values (${invalid.join( `Specified images.domains should be an Array of strings received invalid values (${invalid.join(
', ' ', '
)}).\nSee more info here: https://err.sh/nextjs/invalid-images-config` )}).\nSee more info here: https://err.sh/next.js/invalid-images-config`
) )
} }
} }
...@@ -252,7 +252,7 @@ function assignDefaults(userConfig: { [key: string]: any }) { ...@@ -252,7 +252,7 @@ function assignDefaults(userConfig: { [key: string]: any }) {
const { deviceSizes } = images const { deviceSizes } = images
if (!Array.isArray(deviceSizes)) { if (!Array.isArray(deviceSizes)) {
throw new Error( throw new Error(
`Specified images.deviceSizes should be an Array received ${typeof deviceSizes}.\nSee more info here: https://err.sh/nextjs/invalid-images-config` `Specified images.deviceSizes should be an Array received ${typeof deviceSizes}.\nSee more info here: https://err.sh/next.js/invalid-images-config`
) )
} }
...@@ -270,7 +270,7 @@ function assignDefaults(userConfig: { [key: string]: any }) { ...@@ -270,7 +270,7 @@ function assignDefaults(userConfig: { [key: string]: any }) {
throw new Error( throw new Error(
`Specified images.deviceSizes should be an Array of numbers that are between 1 and 10000, received invalid values (${invalid.join( `Specified images.deviceSizes should be an Array of numbers that are between 1 and 10000, received invalid values (${invalid.join(
', ' ', '
)}).\nSee more info here: https://err.sh/nextjs/invalid-images-config` )}).\nSee more info here: https://err.sh/next.js/invalid-images-config`
) )
} }
} }
...@@ -278,7 +278,7 @@ function assignDefaults(userConfig: { [key: string]: any }) { ...@@ -278,7 +278,7 @@ function assignDefaults(userConfig: { [key: string]: any }) {
const { imageSizes } = images const { imageSizes } = images
if (!Array.isArray(imageSizes)) { if (!Array.isArray(imageSizes)) {
throw new Error( throw new Error(
`Specified images.imageSizes should be an Array received ${typeof imageSizes}.\nSee more info here: https://err.sh/nextjs/invalid-images-config` `Specified images.imageSizes should be an Array received ${typeof imageSizes}.\nSee more info here: https://err.sh/next.js/invalid-images-config`
) )
} }
...@@ -296,7 +296,7 @@ function assignDefaults(userConfig: { [key: string]: any }) { ...@@ -296,7 +296,7 @@ function assignDefaults(userConfig: { [key: string]: any }) {
throw new Error( throw new Error(
`Specified images.imageSizes should be an Array of numbers that are between 1 and 10000, received invalid values (${invalid.join( `Specified images.imageSizes should be an Array of numbers that are between 1 and 10000, received invalid values (${invalid.join(
', ' ', '
)}).\nSee more info here: https://err.sh/nextjs/invalid-images-config` )}).\nSee more info here: https://err.sh/next.js/invalid-images-config`
) )
} }
} }
...@@ -316,13 +316,13 @@ function assignDefaults(userConfig: { [key: string]: any }) { ...@@ -316,13 +316,13 @@ function assignDefaults(userConfig: { [key: string]: any }) {
if (i18nType !== 'object') { if (i18nType !== 'object') {
throw new Error( throw new Error(
`Specified i18n should be an object received ${i18nType}.\nSee more info here: https://err.sh/nextjs/invalid-i18n-config` `Specified i18n should be an object received ${i18nType}.\nSee more info here: https://err.sh/next.js/invalid-i18n-config`
) )
} }
if (!Array.isArray(i18n.locales)) { if (!Array.isArray(i18n.locales)) {
throw new Error( throw new Error(
`Specified i18n.locales should be an Array received ${typeof i18n.locales}.\nSee more info here: https://err.sh/nextjs/invalid-i18n-config` `Specified i18n.locales should be an Array received ${typeof i18n.locales}.\nSee more info here: https://err.sh/next.js/invalid-i18n-config`
) )
} }
...@@ -330,7 +330,7 @@ function assignDefaults(userConfig: { [key: string]: any }) { ...@@ -330,7 +330,7 @@ function assignDefaults(userConfig: { [key: string]: any }) {
if (!i18n.defaultLocale || defaultLocaleType !== 'string') { if (!i18n.defaultLocale || defaultLocaleType !== 'string') {
throw new Error( throw new Error(
`Specified i18n.defaultLocale should be a string.\nSee more info here: https://err.sh/nextjs/invalid-i18n-config` `Specified i18n.defaultLocale should be a string.\nSee more info here: https://err.sh/next.js/invalid-i18n-config`
) )
} }
...@@ -374,14 +374,14 @@ function assignDefaults(userConfig: { [key: string]: any }) { ...@@ -374,14 +374,14 @@ function assignDefaults(userConfig: { [key: string]: any }) {
.map((item: any) => JSON.stringify(item)) .map((item: any) => JSON.stringify(item))
.join( .join(
'\n' '\n'
)}\n\ndomains value must follow format { domain: 'example.fr', defaultLocale: 'fr', locales: ['fr'] }.\nSee more info here: https://err.sh/nextjs/invalid-i18n-config` )}\n\ndomains value must follow format { domain: 'example.fr', defaultLocale: 'fr', locales: ['fr'] }.\nSee more info here: https://err.sh/next.js/invalid-i18n-config`
) )
} }
} }
if (!Array.isArray(i18n.locales)) { if (!Array.isArray(i18n.locales)) {
throw new Error( throw new Error(
`Specified i18n.locales must be an array of locale strings e.g. ["en-US", "nl-NL"] received ${typeof i18n.locales}.\nSee more info here: https://err.sh/nextjs/invalid-i18n-config` `Specified i18n.locales must be an array of locale strings e.g. ["en-US", "nl-NL"] received ${typeof i18n.locales}.\nSee more info here: https://err.sh/next.js/invalid-i18n-config`
) )
} }
...@@ -402,7 +402,7 @@ function assignDefaults(userConfig: { [key: string]: any }) { ...@@ -402,7 +402,7 @@ function assignDefaults(userConfig: { [key: string]: any }) {
if (!i18n.locales.includes(i18n.defaultLocale)) { if (!i18n.locales.includes(i18n.defaultLocale)) {
throw new Error( throw new Error(
`Specified i18n.defaultLocale should be included in i18n.locales.\nSee more info here: https://err.sh/nextjs/invalid-i18n-config` `Specified i18n.defaultLocale should be included in i18n.locales.\nSee more info here: https://err.sh/next.js/invalid-i18n-config`
) )
} }
...@@ -419,7 +419,7 @@ function assignDefaults(userConfig: { [key: string]: any }) { ...@@ -419,7 +419,7 @@ function assignDefaults(userConfig: { [key: string]: any }) {
localeDetectionType !== 'undefined' localeDetectionType !== 'undefined'
) { ) {
throw new Error( throw new Error(
`Specified i18n.localeDetection should be undefined or a boolean received ${localeDetectionType}.\nSee more info here: https://err.sh/nextjs/invalid-i18n-config` `Specified i18n.localeDetection should be undefined or a boolean received ${localeDetectionType}.\nSee more info here: https://err.sh/next.js/invalid-i18n-config`
) )
} }
} }
......
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