Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make sure additional query values aren't added for auto-export #15037

Merged
merged 1 commit into from
Jul 10, 2020

Conversation

ijjk
Copy link
Member

@ijjk ijjk commented Jul 10, 2020

This makes sure we don't add an undefined query value for auto-export pages for auto-export pages unnecessarily

Fixes #15023

@ijjk
Copy link
Member Author

ijjk commented Jul 10, 2020

Stats from current PR

Default Server Mode (Increase detected ⚠️)
General Overall increase ⚠️
vercel/next.js canary ijjk/next.js fix/auto-export-query-value Change
buildDuration 13s 12.8s -129ms
nodeModulesSize 66.4 MB 66.4 MB ⚠️ +149 B
Page Load Tests Overall increase ✓
vercel/next.js canary ijjk/next.js fix/auto-export-query-value Change
/ failed reqs 0 0
/ total time (seconds) 2.244 2.242 0
/ avg req/sec 1114.05 1114.94 +0.89
/error-in-render failed reqs 0 0
/error-in-render total time (seconds) 1.435 1.419 -0.02
/error-in-render avg req/sec 1742.39 1761.31 +18.92
Client Bundles (main, webpack, commons)
vercel/next.js canary ijjk/next.js fix/auto-export-query-value Change
main-HASH.js gzip 6.63 kB 6.63 kB
webpack-HASH.js gzip 751 B 751 B
19b7e98f51cc..e4a8.js gzip 10.7 kB 10.7 kB
framework.HASH.js gzip 39.1 kB 39.1 kB
Overall change 57.2 kB 57.2 kB
Client Bundles (main, webpack, commons) Modern
vercel/next.js canary ijjk/next.js fix/auto-export-query-value Change
main-HASH.module.js gzip 5.72 kB 5.72 kB
webpack-HASH..dule.js gzip 751 B 751 B
19b7e98f51cc..dule.js gzip 7.1 kB 7.1 kB
framework.HA..dule.js gzip 39.1 kB 39.1 kB
Overall change 52.7 kB 52.7 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary ijjk/next.js fix/auto-export-query-value Change
polyfills-HASH.js gzip 26.4 kB 26.4 kB
Overall change 26.4 kB 26.4 kB
Client Build Manifests
vercel/next.js canary ijjk/next.js fix/auto-export-query-value Change
_buildManifest.js gzip 268 B 268 B
_buildManife..dule.js gzip 272 B 272 B
Overall change 540 B 540 B
Rendered Page Sizes
vercel/next.js canary ijjk/next.js fix/auto-export-query-value Change
index.html gzip 953 B 953 B
link.html gzip 961 B 961 B
withRouter.html gzip 945 B 945 B
Overall change 2.86 kB 2.86 kB

Serverless Mode (Increase detected ⚠️)
General Overall increase ⚠️
vercel/next.js canary ijjk/next.js fix/auto-export-query-value Change
buildDuration 13.7s 13.8s ⚠️ +64ms
nodeModulesSize 66.4 MB 66.4 MB ⚠️ +149 B
Client Bundles (main, webpack, commons)
vercel/next.js canary ijjk/next.js fix/auto-export-query-value Change
main-HASH.js gzip 6.63 kB 6.63 kB
webpack-HASH.js gzip 751 B 751 B
19b7e98f51cc..e4a8.js gzip 10.7 kB 10.7 kB
framework.HASH.js gzip 39.1 kB 39.1 kB
Overall change 57.2 kB 57.2 kB
Client Bundles (main, webpack, commons) Modern
vercel/next.js canary ijjk/next.js fix/auto-export-query-value Change
main-HASH.module.js gzip 5.72 kB 5.72 kB
webpack-HASH..dule.js gzip 751 B 751 B
19b7e98f51cc..dule.js gzip 7.1 kB 7.1 kB
framework.HA..dule.js gzip 39.1 kB 39.1 kB
Overall change 52.7 kB 52.7 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary ijjk/next.js fix/auto-export-query-value Change
polyfills-HASH.js gzip 26.4 kB 26.4 kB
Overall change 26.4 kB 26.4 kB
Client Build Manifests
vercel/next.js canary ijjk/next.js fix/auto-export-query-value Change
_buildManifest.js gzip 268 B 268 B
_buildManife..dule.js gzip 272 B 272 B
Overall change 540 B 540 B
Serverless bundles Overall increase ⚠️
vercel/next.js canary ijjk/next.js fix/auto-export-query-value Change
_error.js 876 kB 876 kB ⚠️ +20 B
404.html 4.17 kB 4.17 kB
hooks.html 3.79 kB 3.79 kB
index.js 877 kB 877 kB ⚠️ +20 B
link.js 916 kB 916 kB ⚠️ +20 B
routerDirect.js 909 kB 910 kB ⚠️ +20 B
withRouter.js 910 kB 910 kB ⚠️ +20 B
Overall change 4.5 MB 4.5 MB ⚠️ +100 B
Commit: bdead22

@kodiakhq kodiakhq bot merged commit fed7e09 into vercel:canary Jul 10, 2020
rokinsky pushed a commit to rokinsky/next.js that referenced this pull request Jul 11, 2020
…l#15037)

This makes sure we don't add an undefined query value for auto-export pages for auto-export pages unnecessarily 

Fixes vercel#15023
@timneutkens timneutkens deleted the fix/auto-export-query-value branch July 12, 2020 18:48
@vercel vercel locked as resolved and limited conversation to collaborators Jan 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

useRouter has inconsistent results depending on getInitialProps
2 participants