Skip to content

Commit

Permalink
Update to error instead of warn
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Jan 17, 2020
1 parent fb70775 commit 2faa022
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/export/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default async function({
const hasOrigQueryValues = Object.keys(originalQuery).length > 0
const queryWithAutoExportWarn = () => {
if (hasOrigQueryValues) {
console.warn(
throw new Error(
`\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`
)
}
Expand Down

0 comments on commit 2faa022

Please sign in to comment.