Unverified Commit a76c9297 authored by meesvandongen's avatar meesvandongen Committed by GitHub

fix: typo in output:export error messages (#47252)

See changes
parent 269780cf
......@@ -263,22 +263,22 @@ function assignDefaults(
if (result.output === 'export') {
if (result.i18n) {
throw new Error(
'Specified "i18n" cannot but used with "output: export". See more info here: https://nextjs.org/docs/advanced-features/static-html-export'
'Specified "i18n" cannot be used with "output: export". See more info here: https://nextjs.org/docs/advanced-features/static-html-export'
)
}
if (result.rewrites) {
throw new Error(
'Specified "rewrites" cannot but used with "output: export". See more info here: https://nextjs.org/docs/advanced-features/static-html-export'
'Specified "rewrites" cannot be used with "output: export". See more info here: https://nextjs.org/docs/advanced-features/static-html-export'
)
}
if (result.redirects) {
throw new Error(
'Specified "redirects" cannot but used with "output: export". See more info here: https://nextjs.org/docs/advanced-features/static-html-export'
'Specified "redirects" cannot be used with "output: export". See more info here: https://nextjs.org/docs/advanced-features/static-html-export'
)
}
if (result.headers) {
throw new Error(
'Specified "headers" cannot but used with "output: export". See more info here: https://nextjs.org/docs/advanced-features/static-html-export'
'Specified "headers" cannot be used with "output: export". See more info here: https://nextjs.org/docs/advanced-features/static-html-export'
)
}
}
......
......@@ -59,7 +59,7 @@ describe('config-output-export', () => {
},
})
expect(stderr).toContain(
'Specified "i18n" cannot but used with "output: export".'
'Specified "i18n" cannot be used with "output: export".'
)
})
......@@ -69,7 +69,7 @@ describe('config-output-export', () => {
rewrites: [{ source: '/from', destination: '/to' }],
})
expect(stderr).toContain(
'Specified "rewrites" cannot but used with "output: export".'
'Specified "rewrites" cannot be used with "output: export".'
)
})
......@@ -79,7 +79,7 @@ describe('config-output-export', () => {
redirects: [{ source: '/from', destination: '/to', permanent: true }],
})
expect(stderr).toContain(
'Specified "redirects" cannot but used with "output: export".'
'Specified "redirects" cannot be used with "output: export".'
)
})
......@@ -94,7 +94,7 @@ describe('config-output-export', () => {
],
})
expect(stderr).toContain(
'Specified "headers" cannot but used with "output: export".'
'Specified "headers" cannot be used with "output: export".'
)
})
......
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