Skip to content

Commit 2faa022

Browse files
committed
Update to error instead of warn
1 parent fb70775 commit 2faa022

File tree

7 files changed

+1
-1
lines changed

7 files changed

+1
-1
lines changed

packages/next/export/worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export default async function({
4949
const hasOrigQueryValues = Object.keys(originalQuery).length > 0
5050
const queryWithAutoExportWarn = () => {
5151
if (hasOrigQueryValues) {
52-
console.warn(
52+
throw new Error(
5353
`\nWarn: you provided query values for ${path} which is an auto-exported page. These can not be applied since the page can no longer be re-rendered on the server. To disable auto-export for this page add \`getInitialProps\`\n`
5454
)
5555
}

0 commit comments

Comments
 (0)