-
Notifications
You must be signed in to change notification settings - Fork 27k
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
Update with-zones example #8459
Conversation
- New dynamic page `pages/blog/post/[id].js` - `pages/blog.js` moved to `pages/blog/index.js`
- Set `assetPrefix` dynamically to either `/blog` or `''`. - Update package.json scripts for both 'home' and 'blog' apps, support `yarn dev` in both of them.
Stats from current PRDefault Server Mode (Decrease detected ✓)General Overall decrease ✓
Client Bundles (main, webpack, commons)
Client Bundles (main, webpack, commons) Modern
Client Pages
Client Pages Modern
Client Build Manifests
Fetched pages
Serverless Mode (Decrease detected ✓)General Overall decrease ✓
Client Bundles (main, webpack, commons)
Client Bundles (main, webpack, commons) Modern
Client Pages
Client Pages Modern
Client Build Manifests
Serverless bundles
|
Stats from current PRDefault Server ModeGeneral
Client Bundles (main, webpack, commons)
Client Bundles (main, webpack, commons) Modern
Client Pages
Client Pages Modern
Client Build Manifests
Fetched pages
Serverless Mode (Decrease detected ✓)General
Client Bundles (main, webpack, commons)
Client Bundles (main, webpack, commons) Modern
Client Pages
Client Pages Modern
Client Build Manifests
Serverless bundles Overall decrease ✓
|
Stats from current PRDefault Server Mode (Increase detected
|
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
buildDuration | 22.2s | 21.8s | -396ms |
nodeModulesSize | 41.2 MB | 41.2 MB | ✓ |
Client Bundles (main, webpack, commons)
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
main-HASH.js | 18.1 kB | 18.1 kB | ✓ |
main-HASH.js gzip | 6.63 kB | 6.63 kB | ✓ |
webpack-HASH.js | 1.53 kB | 1.53 kB | ✓ |
webpack-HASH.js gzip | 746 B | 746 B | ✓ |
Overall change | ✓ |
Client Bundles (main, webpack, commons) Modern
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
main-HASH.module.js | 16.5 kB | 16.5 kB | ✓ |
main-HASH.module.js gzip | 6.36 kB | 6.36 kB | ✓ |
webpack-HASH.module.js | 1.53 kB | 1.53 kB | ✓ |
webpack-HASH.module.js gzip | 746 B | 746 B | ✓ |
Overall change | ✓ |
Client Pages
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
_app.js | 1.9 kB | 1.9 kB | ✓ |
_app.js gzip | 908 B | 908 B | ✓ |
_error.js | 12.1 kB | 12.1 kB | ✓ |
_error.js gzip | 4.76 kB | 4.76 kB | ✓ |
hooks.js | 12.7 kB | 12.7 kB | ✓ |
hooks.js gzip | 4.81 kB | 4.81 kB | ✓ |
index.js | 343 B | 343 B | ✓ |
index.js gzip | 237 B | 237 B | ✓ |
link.js | 8.14 kB | 8.14 kB | ✓ |
link.js gzip | 3.49 kB | 3.49 kB | ✓ |
routerDirect.js | 433 B | 433 B | ✓ |
routerDirect.js gzip | 296 B | 296 B | ✓ |
withRouter.js | 444 B | 444 B | ✓ |
withRouter.js gzip | 294 B | 294 B | ✓ |
Overall change | ✓ |
Client Pages Modern
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
_app.module.js | 1.79 kB | 1.79 kB | ✓ |
_app.module.js gzip | 867 B | 867 B | ✓ |
_error.module.js | 23.3 kB | 23.3 kB | ✓ |
_error.module.js gzip | 8.62 kB | 8.62 kB | ✓ |
hooks.module.js | 1.55 kB | 1.55 kB | ✓ |
hooks.module.js gzip | 804 B | 804 B | ✓ |
index.module.js | 319 B | 319 B | ✓ |
index.module.js gzip | 238 B | 238 B | ✓ |
link.module.js | 8.52 kB | 8.52 kB | ✓ |
link.module.js gzip | 3.68 kB | 3.68 kB | ✓ |
routerDirect.module.js | 419 B | 419 B | ✓ |
routerDirect.module.js gzip | 294 B | 294 B | ✓ |
withRouter.module.js | 429 B | 429 B | ✓ |
withRouter.module.js gzip | 293 B | 293 B | ✓ |
Overall change | ✓ |
Client Build Manifests
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
_buildManifest.js | 81 B | 81 B | ✓ |
_buildManifest.js gzip | 61 B | 61 B | ✓ |
_buildManifest.module.js | 81 B | 81 B | ✓ |
_buildManifest.module.js gzip | 61 B | 61 B | ✓ |
Overall change | ✓ |
Fetched pages Overall increase ⚠️
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
link | 3.74 kB | 3.75 kB | |
link gzip | 962 B | 963 B | |
index | 3.69 kB | 3.69 kB | |
index gzip | 954 B | 955 B | |
withRouter | 3.75 kB | 3.75 kB | |
withRouter gzip | 949 B | 949 B | ✓ |
Overall change |
Serverless Mode
General
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
buildDuration | 23.3s | 23.4s | |
nodeModulesSize | 41.2 MB | 41.2 MB | ✓ |
Client Bundles (main, webpack, commons)
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
main-HASH.js | 18.1 kB | 18.1 kB | ✓ |
main-HASH.js gzip | 6.63 kB | 6.63 kB | ✓ |
webpack-HASH.js | 1.53 kB | 1.53 kB | ✓ |
webpack-HASH.js gzip | 746 B | 746 B | ✓ |
Overall change | ✓ |
Client Bundles (main, webpack, commons) Modern
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
main-HASH.module.js | 16.5 kB | 16.5 kB | ✓ |
main-HASH.module.js gzip | 6.36 kB | 6.36 kB | ✓ |
webpack-HASH.module.js | 1.53 kB | 1.53 kB | ✓ |
webpack-HASH.module.js gzip | 746 B | 746 B | ✓ |
Overall change | ✓ |
Client Pages
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
_app.js | 1.9 kB | 1.9 kB | ✓ |
_app.js gzip | 908 B | 908 B | ✓ |
_error.js | 12.1 kB | 12.1 kB | ✓ |
_error.js gzip | 4.76 kB | 4.76 kB | ✓ |
hooks.js | 12.7 kB | 12.7 kB | ✓ |
hooks.js gzip | 4.81 kB | 4.81 kB | ✓ |
index.js | 343 B | 343 B | ✓ |
index.js gzip | 237 B | 237 B | ✓ |
link.js | 8.14 kB | 8.14 kB | ✓ |
link.js gzip | 3.49 kB | 3.49 kB | ✓ |
routerDirect.js | 433 B | 433 B | ✓ |
routerDirect.js gzip | 296 B | 296 B | ✓ |
withRouter.js | 444 B | 444 B | ✓ |
withRouter.js gzip | 294 B | 294 B | ✓ |
Overall change | ✓ |
Client Pages Modern
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
_app.module.js | 1.79 kB | 1.79 kB | ✓ |
_app.module.js gzip | 867 B | 867 B | ✓ |
_error.module.js | 23.3 kB | 23.3 kB | ✓ |
_error.module.js gzip | 8.62 kB | 8.62 kB | ✓ |
hooks.module.js | 1.55 kB | 1.55 kB | ✓ |
hooks.module.js gzip | 804 B | 804 B | ✓ |
index.module.js | 319 B | 319 B | ✓ |
index.module.js gzip | 238 B | 238 B | ✓ |
link.module.js | 8.52 kB | 8.52 kB | ✓ |
link.module.js gzip | 3.68 kB | 3.68 kB | ✓ |
routerDirect.module.js | 419 B | 419 B | ✓ |
routerDirect.module.js gzip | 294 B | 294 B | ✓ |
withRouter.module.js | 429 B | 429 B | ✓ |
withRouter.module.js gzip | 293 B | 293 B | ✓ |
Overall change | ✓ |
Client Build Manifests
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
_buildManifest.js | 81 B | 81 B | ✓ |
_buildManifest.js gzip | 61 B | 61 B | ✓ |
_buildManifest.module.js | 81 B | 81 B | ✓ |
_buildManifest.module.js gzip | 61 B | 61 B | ✓ |
Overall change | ✓ |
Serverless bundles
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
_error.js | 248 kB | 248 kB | ✓ |
_error.js gzip | 66.3 kB | 66.3 kB | -34 B |
hooks.html | 3.81 kB | 3.81 kB | ✓ |
hooks.html gzip | 979 B | 977 B | -2 B |
index.js | 248 kB | 248 kB | ✓ |
index.js gzip | 66.6 kB | 66.5 kB | -49 B |
link.js | 256 kB | 256 kB | ✓ |
link.js gzip | 68.9 kB | 68.9 kB | |
routerDirect.js | 249 kB | 249 kB | ✓ |
routerDirect.js gzip | 66.7 kB | 66.6 kB | -76 B |
withRouter.js | 249 kB | 249 kB | ✓ |
withRouter.js gzip | 66.7 kB | 66.7 kB | |
Overall change | ✓ |
How strange: https://with-zones-d0hphztnm.now.sh/blog With I have another project (a private one) where I use the same |
Stats from current PRDefault Server Mode (Increase detected
|
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
buildDuration | 24.6s | 23.9s | -702ms |
nodeModulesSize | 41.2 MB | 41.2 MB |
Client Bundles (main, webpack, commons)
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
main-HASH.js | 18.1 kB | 18.1 kB | ✓ |
main-HASH.js gzip | 6.63 kB | 6.63 kB | ✓ |
webpack-HASH.js | 1.53 kB | 1.53 kB | ✓ |
webpack-HASH.js gzip | 746 B | 746 B | ✓ |
Overall change | ✓ |
Client Bundles (main, webpack, commons) Modern
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
main-HASH.module.js | 16.5 kB | 16.5 kB | ✓ |
main-HASH.module.js gzip | 6.36 kB | 6.36 kB | ✓ |
webpack-HASH.module.js | 1.53 kB | 1.53 kB | ✓ |
webpack-HASH.module.js gzip | 746 B | 746 B | ✓ |
Overall change | ✓ |
Client Pages
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
_app.js | 1.9 kB | 1.9 kB | ✓ |
_app.js gzip | 908 B | 908 B | ✓ |
_error.js | 12.1 kB | 12.1 kB | ✓ |
_error.js gzip | 4.76 kB | 4.76 kB | ✓ |
hooks.js | 12.7 kB | 12.7 kB | ✓ |
hooks.js gzip | 4.81 kB | 4.81 kB | ✓ |
index.js | 343 B | 343 B | ✓ |
index.js gzip | 237 B | 237 B | ✓ |
link.js | 8.14 kB | 8.14 kB | ✓ |
link.js gzip | 3.49 kB | 3.49 kB | ✓ |
routerDirect.js | 433 B | 433 B | ✓ |
routerDirect.js gzip | 296 B | 296 B | ✓ |
withRouter.js | 444 B | 444 B | ✓ |
withRouter.js gzip | 294 B | 294 B | ✓ |
Overall change | ✓ |
Client Pages Modern
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
_app.module.js | 1.79 kB | 1.79 kB | ✓ |
_app.module.js gzip | 867 B | 867 B | ✓ |
_error.module.js | 23.3 kB | 23.3 kB | ✓ |
_error.module.js gzip | 8.62 kB | 8.62 kB | ✓ |
hooks.module.js | 1.55 kB | 1.55 kB | ✓ |
hooks.module.js gzip | 804 B | 804 B | ✓ |
index.module.js | 319 B | 319 B | ✓ |
index.module.js gzip | 238 B | 238 B | ✓ |
link.module.js | 8.52 kB | 8.52 kB | ✓ |
link.module.js gzip | 3.68 kB | 3.68 kB | ✓ |
routerDirect.module.js | 419 B | 419 B | ✓ |
routerDirect.module.js gzip | 294 B | 294 B | ✓ |
withRouter.module.js | 429 B | 429 B | ✓ |
withRouter.module.js gzip | 293 B | 293 B | ✓ |
Overall change | ✓ |
Client Build Manifests
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
_buildManifest.js | 81 B | 81 B | ✓ |
_buildManifest.js gzip | 61 B | 61 B | ✓ |
_buildManifest.module.js | 81 B | 81 B | ✓ |
_buildManifest.module.js gzip | 61 B | 61 B | ✓ |
Overall change | ✓ |
Fetched pages Overall decrease ✓
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
link | 3.74 kB | 3.74 kB | -1 B |
link gzip | 962 B | 964 B | |
index | 3.69 kB | 3.69 kB | -1 B |
index gzip | 955 B | 956 B | |
withRouter | 3.75 kB | 3.75 kB | -1 B |
withRouter gzip | 949 B | 951 B | |
Overall change | -3 B |
Serverless Mode (Increase detected ⚠️ )
General Overall increase ⚠️
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
buildDuration | 25.7s | 25.7s | -41ms |
nodeModulesSize | 41.2 MB | 41.2 MB |
Client Bundles (main, webpack, commons)
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
main-HASH.js | 18.1 kB | 18.1 kB | ✓ |
main-HASH.js gzip | 6.63 kB | 6.63 kB | ✓ |
webpack-HASH.js | 1.53 kB | 1.53 kB | ✓ |
webpack-HASH.js gzip | 746 B | 746 B | ✓ |
Overall change | ✓ |
Client Bundles (main, webpack, commons) Modern
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
main-HASH.module.js | 16.5 kB | 16.5 kB | ✓ |
main-HASH.module.js gzip | 6.36 kB | 6.36 kB | ✓ |
webpack-HASH.module.js | 1.53 kB | 1.53 kB | ✓ |
webpack-HASH.module.js gzip | 746 B | 746 B | ✓ |
Overall change | ✓ |
Client Pages
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
_app.js | 1.9 kB | 1.9 kB | ✓ |
_app.js gzip | 908 B | 908 B | ✓ |
_error.js | 12.1 kB | 12.1 kB | ✓ |
_error.js gzip | 4.76 kB | 4.76 kB | ✓ |
hooks.js | 12.7 kB | 12.7 kB | ✓ |
hooks.js gzip | 4.81 kB | 4.81 kB | ✓ |
index.js | 343 B | 343 B | ✓ |
index.js gzip | 237 B | 237 B | ✓ |
link.js | 8.14 kB | 8.14 kB | ✓ |
link.js gzip | 3.49 kB | 3.49 kB | ✓ |
routerDirect.js | 433 B | 433 B | ✓ |
routerDirect.js gzip | 296 B | 296 B | ✓ |
withRouter.js | 444 B | 444 B | ✓ |
withRouter.js gzip | 294 B | 294 B | ✓ |
Overall change | ✓ |
Client Pages Modern
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
_app.module.js | 1.79 kB | 1.79 kB | ✓ |
_app.module.js gzip | 867 B | 867 B | ✓ |
_error.module.js | 23.3 kB | 23.3 kB | ✓ |
_error.module.js gzip | 8.62 kB | 8.62 kB | ✓ |
hooks.module.js | 1.55 kB | 1.55 kB | ✓ |
hooks.module.js gzip | 804 B | 804 B | ✓ |
index.module.js | 319 B | 319 B | ✓ |
index.module.js gzip | 238 B | 238 B | ✓ |
link.module.js | 8.52 kB | 8.52 kB | ✓ |
link.module.js gzip | 3.68 kB | 3.68 kB | ✓ |
routerDirect.module.js | 419 B | 419 B | ✓ |
routerDirect.module.js gzip | 294 B | 294 B | ✓ |
withRouter.module.js | 429 B | 429 B | ✓ |
withRouter.module.js gzip | 293 B | 293 B | ✓ |
Overall change | ✓ |
Client Build Manifests
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
_buildManifest.js | 81 B | 81 B | ✓ |
_buildManifest.js gzip | 61 B | 61 B | ✓ |
_buildManifest.module.js | 81 B | 81 B | ✓ |
_buildManifest.module.js gzip | 61 B | 61 B | ✓ |
Overall change | ✓ |
Serverless bundles Overall increase ⚠️
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
_error.js | 248 kB | 248 kB | |
_error.js gzip | 66.3 kB | 66.3 kB | |
hooks.html | 3.81 kB | 3.81 kB | ✓ |
hooks.html gzip | 980 B | 976 B | -4 B |
index.js | 248 kB | 248 kB | |
index.js gzip | 66.7 kB | 66.8 kB | |
link.js | 256 kB | 256 kB | |
link.js gzip | 68.9 kB | 68.8 kB | -69 B |
routerDirect.js | 249 kB | 249 kB | |
routerDirect.js gzip | 66.6 kB | 66.6 kB | -48 B |
withRouter.js | 249 kB | 249 kB | |
withRouter.js gzip | 66.7 kB | 66.9 kB | |
Overall change |
Stats from current PRDefault Server Mode (Increase detected
|
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
buildDuration | 23.7s | 23.6s | -86ms |
nodeModulesSize | 41.2 MB | 41.2 MB |
Client Bundles (main, webpack, commons) Overall decrease ✓
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
main-HASH.js | 18.1 kB | 18.1 kB | -1 B |
main-HASH.js gzip | 6.63 kB | 6.62 kB | -1 B |
webpack-HASH.js | 1.53 kB | 1.53 kB | ✓ |
webpack-HASH.js gzip | 746 B | 746 B | ✓ |
Overall change | -1 B |
Client Bundles (main, webpack, commons) Modern Overall decrease ✓
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
main-HASH.module.js | 16.5 kB | 16.5 kB | -1 B |
main-HASH.module.js gzip | 6.36 kB | 6.36 kB | -1 B |
webpack-HASH.module.js | 1.53 kB | 1.53 kB | ✓ |
webpack-HASH.module.js gzip | 746 B | 746 B | ✓ |
Overall change | -1 B |
Client Pages Overall increase ⚠️
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
_app.js | 1.9 kB | 1.9 kB | ✓ |
_app.js gzip | 908 B | 908 B | ✓ |
_error.js | 12.1 kB | 12.1 kB | ✓ |
_error.js gzip | 4.76 kB | 4.76 kB | |
hooks.js | 12.7 kB | 12.7 kB | ✓ |
hooks.js gzip | 4.81 kB | 4.81 kB | ✓ |
index.js | 343 B | 343 B | ✓ |
index.js gzip | 237 B | 237 B | ✓ |
link.js | 8.14 kB | 8.14 kB | ✓ |
link.js gzip | 3.49 kB | 3.49 kB | |
routerDirect.js | 433 B | 434 B | |
routerDirect.js gzip | 296 B | 296 B | ✓ |
withRouter.js | 444 B | 444 B | ✓ |
withRouter.js gzip | 294 B | 294 B | ✓ |
Overall change |
Client Pages Modern Overall increase ⚠️
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
_app.module.js | 1.79 kB | 1.79 kB | ✓ |
_app.module.js gzip | 867 B | 866 B | -1 B |
_error.module.js | 23.3 kB | 23.3 kB | ✓ |
_error.module.js gzip | 8.62 kB | 8.62 kB | ✓ |
hooks.module.js | 1.55 kB | 1.55 kB | ✓ |
hooks.module.js gzip | 804 B | 805 B | |
index.module.js | 319 B | 319 B | ✓ |
index.module.js gzip | 238 B | 238 B | ✓ |
link.module.js | 8.52 kB | 8.52 kB | ✓ |
link.module.js gzip | 3.68 kB | 3.68 kB | ✓ |
routerDirect.module.js | 419 B | 419 B | ✓ |
routerDirect.module.js gzip | 294 B | 294 B | ✓ |
withRouter.module.js | 429 B | 430 B | |
withRouter.module.js gzip | 293 B | 293 B | ✓ |
Overall change |
Client Build Manifests
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
_buildManifest.js | 81 B | 81 B | ✓ |
_buildManifest.js gzip | 61 B | 61 B | ✓ |
_buildManifest.module.js | 81 B | 81 B | ✓ |
_buildManifest.module.js gzip | 61 B | 61 B | ✓ |
Overall change | ✓ |
Fetched pages Overall increase ⚠️
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
link | 3.74 kB | 3.75 kB | |
link gzip | 962 B | 966 B | |
index | 3.69 kB | 3.69 kB | |
index gzip | 954 B | 958 B | |
withRouter | 3.75 kB | 3.75 kB | |
withRouter gzip | 949 B | 953 B | |
Overall change |
Serverless Mode (Increase detected ⚠️ )
General Overall increase ⚠️
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
buildDuration | 25.6s | 25.4s | -159ms |
nodeModulesSize | 41.2 MB | 41.2 MB |
Client Bundles (main, webpack, commons)
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
main-HASH.js | 18.1 kB | 18.1 kB | ✓ |
main-HASH.js gzip | 6.63 kB | 6.63 kB | ✓ |
webpack-HASH.js | 1.53 kB | 1.53 kB | ✓ |
webpack-HASH.js gzip | 746 B | 746 B | ✓ |
Overall change | ✓ |
Client Bundles (main, webpack, commons) Modern
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
main-HASH.module.js | 16.5 kB | 16.5 kB | ✓ |
main-HASH.module.js gzip | 6.36 kB | 6.36 kB | ✓ |
webpack-HASH.module.js | 1.53 kB | 1.53 kB | ✓ |
webpack-HASH.module.js gzip | 746 B | 746 B | ✓ |
Overall change | ✓ |
Client Pages
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
_app.js | 1.9 kB | 1.9 kB | ✓ |
_app.js gzip | 908 B | 908 B | ✓ |
_error.js | 12.1 kB | 12.1 kB | ✓ |
_error.js gzip | 4.76 kB | 4.76 kB | ✓ |
hooks.js | 12.7 kB | 12.7 kB | ✓ |
hooks.js gzip | 4.81 kB | 4.81 kB | ✓ |
index.js | 343 B | 343 B | ✓ |
index.js gzip | 237 B | 237 B | ✓ |
link.js | 8.14 kB | 8.14 kB | ✓ |
link.js gzip | 3.49 kB | 3.49 kB | ✓ |
routerDirect.js | 433 B | 433 B | ✓ |
routerDirect.js gzip | 296 B | 296 B | ✓ |
withRouter.js | 444 B | 444 B | ✓ |
withRouter.js gzip | 294 B | 294 B | ✓ |
Overall change | ✓ |
Client Pages Modern
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
_app.module.js | 1.79 kB | 1.79 kB | ✓ |
_app.module.js gzip | 867 B | 867 B | ✓ |
_error.module.js | 23.3 kB | 23.3 kB | ✓ |
_error.module.js gzip | 8.62 kB | 8.62 kB | ✓ |
hooks.module.js | 1.55 kB | 1.55 kB | ✓ |
hooks.module.js gzip | 804 B | 804 B | ✓ |
index.module.js | 319 B | 319 B | ✓ |
index.module.js gzip | 238 B | 238 B | ✓ |
link.module.js | 8.52 kB | 8.52 kB | ✓ |
link.module.js gzip | 3.68 kB | 3.68 kB | ✓ |
routerDirect.module.js | 419 B | 419 B | ✓ |
routerDirect.module.js gzip | 294 B | 294 B | ✓ |
withRouter.module.js | 429 B | 429 B | ✓ |
withRouter.module.js gzip | 293 B | 293 B | ✓ |
Overall change | ✓ |
Client Build Manifests
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
_buildManifest.js | 81 B | 81 B | ✓ |
_buildManifest.js gzip | 61 B | 61 B | ✓ |
_buildManifest.module.js | 81 B | 81 B | ✓ |
_buildManifest.module.js gzip | 61 B | 61 B | ✓ |
Overall change | ✓ |
Serverless bundles Overall increase ⚠️
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
_error.js | 248 kB | 248 kB | |
_error.js gzip | 66.4 kB | 66.4 kB | |
hooks.html | 3.81 kB | 3.81 kB | -5 B |
hooks.html gzip | 974 B | 978 B | |
index.js | 248 kB | 248 kB | |
index.js gzip | 66.8 kB | 66.6 kB | -131 B |
link.js | 256 kB | 256 kB | |
link.js gzip | 68.9 kB | 68.9 kB | -3 B |
routerDirect.js | 249 kB | 249 kB | |
routerDirect.js gzip | 66.9 kB | 66.9 kB | |
withRouter.js | 249 kB | 249 kB | |
withRouter.js gzip | 66.6 kB | 66.9 kB | |
Overall change |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@borekb Just to be clear, we don't recommend the setup in this example, instead we would prefer to always use a single application for all cases, having multiple Next.js doesn't helps for anything (correct me if I'm wrong).
The example will be too complicated and confusing with these changes. I would prefer to fix the example, because it seems to not be working now, instead of adding a lot of changes to it, specially in the readme.
The README is currently too long, I agree and plan to edit it down. The rest of the PR, though, I'm not sure how to make much smaller – maybe remove dynamic routing (which I added because of #7488) but the rest of it are healthy fixes and improvements, IMO. Regarding the use case, we have a monorepo with several separate Next.js apps and use Now with GitHub integration for deployment. As the integration only reads a single To be clear, I'm not using the zones feature out of joy but because I don't see any other way in our scenario (I'm praying for basepath support 😄). I spent quite a lot of time struggling with the setup, the diff is relatively small in the end (if you skip the README) but there are many details to get wrong. |
I reverted it back to the state of 233152e and then updated it with info on recent changes of the `with-zones` example.
Stats from current PRDefault Server Mode (Increase detected
|
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
buildDuration | 25.1s | 23.8s | -1.3s |
nodeModulesSize | 41.2 MB | 41.2 MB | ✓ |
Client Bundles (main, webpack, commons) Overall increase ⚠️
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
main-HASH.js | 18.1 kB | 18.1 kB | |
main-HASH.js gzip | 6.62 kB | 6.63 kB | |
webpack-HASH.js | 1.53 kB | 1.53 kB | ✓ |
webpack-HASH.js gzip | 746 B | 746 B | ✓ |
Overall change |
Client Bundles (main, webpack, commons) Modern Overall increase ⚠️
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
main-HASH.module.js | 16.5 kB | 16.5 kB | |
main-HASH.module.js gzip | 6.36 kB | 6.36 kB | |
webpack-HASH.module.js | 1.53 kB | 1.53 kB | ✓ |
webpack-HASH.module.js gzip | 746 B | 746 B | ✓ |
Overall change |
Client Pages Overall decrease ✓
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
_app.js | 1.9 kB | 1.9 kB | ✓ |
_app.js gzip | 908 B | 908 B | ✓ |
_error.js | 12.1 kB | 12.1 kB | ✓ |
_error.js gzip | 4.76 kB | 4.76 kB | -1 B |
hooks.js | 12.7 kB | 12.7 kB | ✓ |
hooks.js gzip | 4.81 kB | 4.81 kB | ✓ |
index.js | 343 B | 343 B | ✓ |
index.js gzip | 237 B | 237 B | ✓ |
link.js | 8.14 kB | 8.14 kB | ✓ |
link.js gzip | 3.49 kB | 3.49 kB | -1 B |
routerDirect.js | 434 B | 433 B | -1 B |
routerDirect.js gzip | 296 B | 296 B | ✓ |
withRouter.js | 444 B | 444 B | ✓ |
withRouter.js gzip | 294 B | 294 B | ✓ |
Overall change | -1 B |
Client Pages Modern Overall decrease ✓
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
_app.module.js | 1.79 kB | 1.79 kB | ✓ |
_app.module.js gzip | 866 B | 867 B | |
_error.module.js | 23.3 kB | 23.3 kB | ✓ |
_error.module.js gzip | 8.62 kB | 8.62 kB | ✓ |
hooks.module.js | 1.55 kB | 1.55 kB | ✓ |
hooks.module.js gzip | 805 B | 804 B | -1 B |
index.module.js | 319 B | 319 B | ✓ |
index.module.js gzip | 238 B | 238 B | ✓ |
link.module.js | 8.52 kB | 8.52 kB | ✓ |
link.module.js gzip | 3.68 kB | 3.68 kB | ✓ |
routerDirect.module.js | 419 B | 419 B | ✓ |
routerDirect.module.js gzip | 294 B | 294 B | ✓ |
withRouter.module.js | 430 B | 429 B | -1 B |
withRouter.module.js gzip | 293 B | 293 B | ✓ |
Overall change | -1 B |
Client Build Manifests
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
_buildManifest.js | 81 B | 81 B | ✓ |
_buildManifest.js gzip | 61 B | 61 B | ✓ |
_buildManifest.module.js | 81 B | 81 B | ✓ |
_buildManifest.module.js gzip | 61 B | 61 B | ✓ |
Overall change | ✓ |
Fetched pages Overall increase ⚠️
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
link | 3.74 kB | 3.75 kB | |
link gzip | 963 B | 962 B | -1 B |
index | 3.69 kB | 3.69 kB | |
index gzip | 955 B | 953 B | -2 B |
withRouter | 3.75 kB | 3.75 kB | |
withRouter gzip | 949 B | 948 B | -1 B |
Overall change |
Serverless Mode (Increase detected ⚠️ )
General
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
buildDuration | 25s | 26.1s | |
nodeModulesSize | 41.2 MB | 41.2 MB | ✓ |
Client Bundles (main, webpack, commons)
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
main-HASH.js | 18.1 kB | 18.1 kB | ✓ |
main-HASH.js gzip | 6.63 kB | 6.63 kB | ✓ |
webpack-HASH.js | 1.53 kB | 1.53 kB | ✓ |
webpack-HASH.js gzip | 746 B | 746 B | ✓ |
Overall change | ✓ |
Client Bundles (main, webpack, commons) Modern
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
main-HASH.module.js | 16.5 kB | 16.5 kB | ✓ |
main-HASH.module.js gzip | 6.36 kB | 6.36 kB | ✓ |
webpack-HASH.module.js | 1.53 kB | 1.53 kB | ✓ |
webpack-HASH.module.js gzip | 746 B | 746 B | ✓ |
Overall change | ✓ |
Client Pages
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
_app.js | 1.9 kB | 1.9 kB | ✓ |
_app.js gzip | 908 B | 908 B | ✓ |
_error.js | 12.1 kB | 12.1 kB | ✓ |
_error.js gzip | 4.76 kB | 4.76 kB | ✓ |
hooks.js | 12.7 kB | 12.7 kB | ✓ |
hooks.js gzip | 4.81 kB | 4.81 kB | ✓ |
index.js | 343 B | 343 B | ✓ |
index.js gzip | 237 B | 237 B | ✓ |
link.js | 8.14 kB | 8.14 kB | ✓ |
link.js gzip | 3.49 kB | 3.49 kB | ✓ |
routerDirect.js | 433 B | 433 B | ✓ |
routerDirect.js gzip | 296 B | 296 B | ✓ |
withRouter.js | 444 B | 444 B | ✓ |
withRouter.js gzip | 294 B | 294 B | ✓ |
Overall change | ✓ |
Client Pages Modern
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
_app.module.js | 1.79 kB | 1.79 kB | ✓ |
_app.module.js gzip | 867 B | 867 B | ✓ |
_error.module.js | 23.3 kB | 23.3 kB | ✓ |
_error.module.js gzip | 8.62 kB | 8.62 kB | ✓ |
hooks.module.js | 1.55 kB | 1.55 kB | ✓ |
hooks.module.js gzip | 804 B | 804 B | ✓ |
index.module.js | 319 B | 319 B | ✓ |
index.module.js gzip | 238 B | 238 B | ✓ |
link.module.js | 8.52 kB | 8.52 kB | ✓ |
link.module.js gzip | 3.68 kB | 3.68 kB | ✓ |
routerDirect.module.js | 419 B | 419 B | ✓ |
routerDirect.module.js gzip | 294 B | 294 B | ✓ |
withRouter.module.js | 429 B | 429 B | ✓ |
withRouter.module.js gzip | 293 B | 293 B | ✓ |
Overall change | ✓ |
Client Build Manifests
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
_buildManifest.js | 81 B | 81 B | ✓ |
_buildManifest.js gzip | 61 B | 61 B | ✓ |
_buildManifest.module.js | 81 B | 81 B | ✓ |
_buildManifest.module.js gzip | 61 B | 61 B | ✓ |
Overall change | ✓ |
Serverless bundles Overall increase ⚠️
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
_error.js | 248 kB | 248 kB | |
_error.js gzip | 66.3 kB | 66.4 kB | |
hooks.html | 3.81 kB | 3.81 kB | |
hooks.html gzip | 978 B | 979 B | |
index.js | 248 kB | 248 kB | |
index.js gzip | 66.6 kB | 66.8 kB | |
link.js | 256 kB | 256 kB | |
link.js gzip | 68.8 kB | 68.9 kB | |
routerDirect.js | 249 kB | 249 kB | |
routerDirect.js gzip | 66.8 kB | 66.8 kB | -70 B |
withRouter.js | 249 kB | 249 kB | |
withRouter.js gzip | 66.6 kB | 66.7 kB | |
Overall change |
@lfades The README is now much shorter (actually shorter than it was originally). So to sum up this PR at this point:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes should work for this example.
Applies suggestions from code review. Co-Authored-By: Joe Haddad <timer150@gmail.com>
@Timer I applied your suggestions in 24bf377. This is what I now see with Cloud deployment is partially working: |
Stats from current PRDefault Server Mode (Increase detected
|
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
buildDuration | 23.5s | 24.1s | |
nodeModulesSize | 41.2 MB | 41.2 MB | -902 B |
Client Bundles (main, webpack, commons) Overall increase ⚠️
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
main-HASH.js | 18.1 kB | 18.1 kB | |
main-HASH.js gzip | 6.62 kB | 6.63 kB | |
webpack-HASH.js | 1.53 kB | 1.53 kB | ✓ |
webpack-HASH.js gzip | 746 B | 746 B | ✓ |
Overall change |
Client Bundles (main, webpack, commons) Modern Overall increase ⚠️
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
main-HASH.module.js | 16.5 kB | 16.5 kB | |
main-HASH.module.js gzip | 6.36 kB | 6.36 kB | |
webpack-HASH.module.js | 1.53 kB | 1.53 kB | ✓ |
webpack-HASH.module.js gzip | 746 B | 746 B | ✓ |
Overall change |
Client Pages Overall decrease ✓
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
_app.js | 1.9 kB | 1.9 kB | ✓ |
_app.js gzip | 908 B | 908 B | ✓ |
_error.js | 12.1 kB | 12.1 kB | ✓ |
_error.js gzip | 4.76 kB | 4.76 kB | -1 B |
hooks.js | 12.7 kB | 12.7 kB | ✓ |
hooks.js gzip | 4.81 kB | 4.81 kB | ✓ |
index.js | 343 B | 343 B | ✓ |
index.js gzip | 237 B | 237 B | ✓ |
link.js | 8.14 kB | 8.14 kB | ✓ |
link.js gzip | 3.49 kB | 3.49 kB | -1 B |
routerDirect.js | 434 B | 433 B | -1 B |
routerDirect.js gzip | 296 B | 296 B | ✓ |
withRouter.js | 444 B | 444 B | ✓ |
withRouter.js gzip | 294 B | 294 B | ✓ |
Overall change | -1 B |
Client Pages Modern Overall decrease ✓
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
_app.module.js | 1.79 kB | 1.79 kB | ✓ |
_app.module.js gzip | 866 B | 867 B | |
_error.module.js | 23.3 kB | 23.3 kB | ✓ |
_error.module.js gzip | 8.62 kB | 8.62 kB | ✓ |
hooks.module.js | 1.55 kB | 1.55 kB | ✓ |
hooks.module.js gzip | 805 B | 804 B | -1 B |
index.module.js | 319 B | 319 B | ✓ |
index.module.js gzip | 238 B | 238 B | ✓ |
link.module.js | 8.52 kB | 8.52 kB | ✓ |
link.module.js gzip | 3.68 kB | 3.68 kB | ✓ |
routerDirect.module.js | 419 B | 419 B | ✓ |
routerDirect.module.js gzip | 294 B | 294 B | ✓ |
withRouter.module.js | 430 B | 429 B | -1 B |
withRouter.module.js gzip | 293 B | 293 B | ✓ |
Overall change | -1 B |
Client Build Manifests
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
_buildManifest.js | 81 B | 81 B | ✓ |
_buildManifest.js gzip | 61 B | 61 B | ✓ |
_buildManifest.module.js | 81 B | 81 B | ✓ |
_buildManifest.module.js gzip | 61 B | 61 B | ✓ |
Overall change | ✓ |
Fetched pages
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
link | 3.75 kB | 3.75 kB | ✓ |
link gzip | 963 B | 964 B | |
index | 3.69 kB | 3.69 kB | ✓ |
index gzip | 954 B | 955 B | |
withRouter | 3.75 kB | 3.75 kB | ✓ |
withRouter gzip | 950 B | 950 B | ✓ |
Overall change | ✓ |
Serverless Mode (Decrease detected ✓)
General Overall decrease ✓
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
buildDuration | 25.9s | 25.3s | -526ms |
nodeModulesSize | 41.2 MB | 41.2 MB | -902 B |
Client Bundles (main, webpack, commons)
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
main-HASH.js | 18.1 kB | 18.1 kB | ✓ |
main-HASH.js gzip | 6.63 kB | 6.63 kB | ✓ |
webpack-HASH.js | 1.53 kB | 1.53 kB | ✓ |
webpack-HASH.js gzip | 746 B | 746 B | ✓ |
Overall change | ✓ |
Client Bundles (main, webpack, commons) Modern
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
main-HASH.module.js | 16.5 kB | 16.5 kB | ✓ |
main-HASH.module.js gzip | 6.36 kB | 6.36 kB | ✓ |
webpack-HASH.module.js | 1.53 kB | 1.53 kB | ✓ |
webpack-HASH.module.js gzip | 746 B | 746 B | ✓ |
Overall change | ✓ |
Client Pages
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
_app.js | 1.9 kB | 1.9 kB | ✓ |
_app.js gzip | 908 B | 908 B | ✓ |
_error.js | 12.1 kB | 12.1 kB | ✓ |
_error.js gzip | 4.76 kB | 4.76 kB | ✓ |
hooks.js | 12.7 kB | 12.7 kB | ✓ |
hooks.js gzip | 4.81 kB | 4.81 kB | ✓ |
index.js | 343 B | 343 B | ✓ |
index.js gzip | 237 B | 237 B | ✓ |
link.js | 8.14 kB | 8.14 kB | ✓ |
link.js gzip | 3.49 kB | 3.49 kB | ✓ |
routerDirect.js | 433 B | 433 B | ✓ |
routerDirect.js gzip | 296 B | 296 B | ✓ |
withRouter.js | 444 B | 444 B | ✓ |
withRouter.js gzip | 294 B | 294 B | ✓ |
Overall change | ✓ |
Client Pages Modern
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
_app.module.js | 1.79 kB | 1.79 kB | ✓ |
_app.module.js gzip | 867 B | 867 B | ✓ |
_error.module.js | 23.3 kB | 23.3 kB | ✓ |
_error.module.js gzip | 8.62 kB | 8.62 kB | ✓ |
hooks.module.js | 1.55 kB | 1.55 kB | ✓ |
hooks.module.js gzip | 804 B | 804 B | ✓ |
index.module.js | 319 B | 319 B | ✓ |
index.module.js gzip | 238 B | 238 B | ✓ |
link.module.js | 8.52 kB | 8.52 kB | ✓ |
link.module.js gzip | 3.68 kB | 3.68 kB | ✓ |
routerDirect.module.js | 419 B | 419 B | ✓ |
routerDirect.module.js gzip | 294 B | 294 B | ✓ |
withRouter.module.js | 429 B | 429 B | ✓ |
withRouter.module.js gzip | 293 B | 293 B | ✓ |
Overall change | ✓ |
Client Build Manifests
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
_buildManifest.js | 81 B | 81 B | ✓ |
_buildManifest.js gzip | 61 B | 61 B | ✓ |
_buildManifest.module.js | 81 B | 81 B | ✓ |
_buildManifest.module.js gzip | 61 B | 61 B | ✓ |
Overall change | ✓ |
Serverless bundles
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
_error.js | 248 kB | 248 kB | ✓ |
_error.js gzip | 66.3 kB | 66.4 kB | |
hooks.html | 3.81 kB | 3.81 kB | ✓ |
hooks.html gzip | 977 B | 978 B | |
index.js | 248 kB | 248 kB | ✓ |
index.js gzip | 66.6 kB | 66.5 kB | -44 B |
link.js | 256 kB | 256 kB | ✓ |
link.js gzip | 68.8 kB | 68.9 kB | |
routerDirect.js | 249 kB | 249 kB | ✓ |
routerDirect.js gzip | 66.8 kB | 66.7 kB | -106 B |
withRouter.js | 249 kB | 249 kB | ✓ |
withRouter.js gzip | 66.6 kB | 66.7 kB | |
Overall change | ✓ |
@borekb See the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I see the crux of the problem -- the blog app's page is actually called /blog
instead of /index
.
This seems like an unfortunately designed example 😄.
We will need a special route to handle /blog
's _next
and static
folders.
Ah, thanks, that explains a lot!
Sorry, I'm not sure what you're referring to. Is somehow
Ok, I'll add it back and see how it works. |
🎉 with the https://with-zones-rarjvagao.now.sh/
|
Stats from current PRDefault Server Mode (Increase detected
|
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
buildDuration | 23.1s | 23.2s | |
nodeModulesSize | 41.3 MB | 41.2 MB | -64.2 kB |
Client Bundles (main, webpack, commons) Overall decrease ✓
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
main-HASH.js | 18.1 kB | 18.1 kB | -28 B |
main-HASH.js gzip | 6.64 kB | 6.63 kB | -15 B |
webpack-HASH.js | 1.53 kB | 1.53 kB | ✓ |
webpack-HASH.js gzip | 746 B | 746 B | ✓ |
Overall change | -28 B |
Client Bundles (main, webpack, commons) Modern Overall decrease ✓
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
main-HASH.module.js | 16.5 kB | 16.5 kB | -28 B |
main-HASH.module.js gzip | 6.37 kB | 6.36 kB | -14 B |
webpack-HASH.module.js | 1.53 kB | 1.53 kB | ✓ |
webpack-HASH.module.js gzip | 746 B | 746 B | ✓ |
Overall change | -28 B |
Client Pages Overall increase ⚠️
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
_app.js | 1.83 kB | 1.9 kB | |
_app.js gzip | 884 B | 908 B | |
_error.js | 12.1 kB | 12.1 kB | ✓ |
_error.js gzip | 4.76 kB | 4.76 kB | ✓ |
hooks.js | 12.7 kB | 12.7 kB | ✓ |
hooks.js gzip | 4.81 kB | 4.81 kB | ✓ |
index.js | 343 B | 343 B | ✓ |
index.js gzip | 237 B | 237 B | ✓ |
link.js | 8.14 kB | 8.14 kB | ✓ |
link.js gzip | 3.49 kB | 3.49 kB | ✓ |
routerDirect.js | 433 B | 433 B | ✓ |
routerDirect.js gzip | 296 B | 296 B | ✓ |
withRouter.js | 444 B | 444 B | ✓ |
withRouter.js gzip | 294 B | 294 B | ✓ |
Overall change |
Client Pages Modern Overall increase ⚠️
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
_app.module.js | 1.73 kB | 1.79 kB | |
_app.module.js gzip | 840 B | 867 B | |
_error.module.js | 23.3 kB | 23.3 kB | ✓ |
_error.module.js gzip | 8.62 kB | 8.62 kB | ✓ |
hooks.module.js | 1.55 kB | 1.55 kB | ✓ |
hooks.module.js gzip | 804 B | 804 B | ✓ |
index.module.js | 319 B | 319 B | ✓ |
index.module.js gzip | 238 B | 238 B | ✓ |
link.module.js | 8.52 kB | 8.52 kB | ✓ |
link.module.js gzip | 3.68 kB | 3.68 kB | ✓ |
routerDirect.module.js | 419 B | 419 B | ✓ |
routerDirect.module.js gzip | 294 B | 294 B | ✓ |
withRouter.module.js | 429 B | 429 B | ✓ |
withRouter.module.js gzip | 293 B | 293 B | ✓ |
Overall change |
Client Build Manifests
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
_buildManifest.js | 81 B | 81 B | ✓ |
_buildManifest.js gzip | 61 B | 61 B | ✓ |
_buildManifest.module.js | 81 B | 81 B | ✓ |
_buildManifest.module.js gzip | 61 B | 61 B | ✓ |
Overall change | ✓ |
Diffs
Diff for main-HASH.js
@@ -289,7 +289,7 @@ var _interopRequireDefault = __webpack_require__("KI45");
exports.__esModule = true;
exports.render = render;
exports.renderError = renderError;
-exports["default"] = exports.emitter = exports.ErrorComponent = exports.router = exports.dataManager = exports.version = void 0;
+exports["default"] = exports.emitter = exports.ErrorComponent = exports.router = exports.dataManager = void 0;
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__("+oT+"));
@@ -338,8 +338,6 @@ if (!window.Promise) {
var data = JSON.parse(document.getElementById('__NEXT_DATA__').textContent);
window.__NEXT_DATA__ = data;
-var version = "9.0.5";
-exports.version = version;
var props = data.props,
err = data.err,
page = data.page,
Diff for main-HASH.module.js
@@ -361,7 +361,7 @@ var _interopRequireDefault = __webpack_require__("KI45");
exports.__esModule = true;
exports.render = render;
exports.renderError = renderError;
-exports.default = exports.emitter = exports.ErrorComponent = exports.router = exports.dataManager = exports.version = void 0;
+exports.default = exports.emitter = exports.ErrorComponent = exports.router = exports.dataManager = void 0;
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__("+oT+"));
@@ -410,8 +410,6 @@ if (!window.Promise) {
const data = JSON.parse(document.getElementById('__NEXT_DATA__').textContent);
window.__NEXT_DATA__ = data;
-const version = "9.0.5";
-exports.version = version;
const {
props,
err,
Diff for _app.js
@@ -118,7 +118,8 @@ function (_react$default$Compon) {
}]);
return App;
-}(_react["default"].Component);
+}(_react["default"].Component); // @deprecated noop for now until removal
+
exports["default"] = App;
App.childContextTypes = {
@@ -126,17 +127,15 @@ App.childContextTypes = {
};
App.origGetInitialProps = appGetInitialProps;
App.getInitialProps = appGetInitialProps;
-var warnContainer;
-var warnUrl;
-
-if (false) {} // @deprecated noop for now until removal
-
function Container(p) {
- if (false) {}
return p.children;
}
+var warnUrl = (0, _utils.execOnce)(function () {
+ if (false) {}
+});
+
function createUrl(router) {
// This is to make sure we don't references the router object at call time
var pathname = router.pathname,
@@ -144,40 +143,40 @@ function createUrl(router) {
query = router.query;
return {
get query() {
- if (false) {}
+ warnUrl();
return query;
},
get pathname() {
- if (false) {}
+ warnUrl();
return pathname;
},
get asPath() {
- if (false) {}
+ warnUrl();
return asPath;
},
back: function back() {
- if (false) {}
+ warnUrl();
router.back();
},
push: function push(url, as) {
- if (false) {}
+ warnUrl();
return router.push(url, as);
},
pushTo: function pushTo(href, as) {
- if (false) {}
+ warnUrl();
var pushRoute = as ? href : '';
var pushUrl = as || href;
return router.push(pushRoute, pushUrl);
},
replace: function replace(url, as) {
- if (false) {}
+ warnUrl();
return router.replace(url, as);
},
replaceTo: function replaceTo(href, as) {
- if (false) {}
+ warnUrl();
var replaceRoute = as ? href : '';
var replaceUrl = as || href;
return router.replace(replaceRoute, replaceUrl);
Diff for _app.module.js
@@ -121,7 +121,8 @@ class App extends _react.default.Component {
}));
}
-}
+} // @deprecated noop for now until removal
+
exports.default = App;
App.childContextTypes = {
@@ -129,17 +130,15 @@ App.childContextTypes = {
};
App.origGetInitialProps = appGetInitialProps;
App.getInitialProps = appGetInitialProps;
-let warnContainer;
-let warnUrl;
-
-if (false) {} // @deprecated noop for now until removal
-
function Container(p) {
- if (false) {}
return p.children;
}
+const warnUrl = (0, _utils.execOnce)(() => {
+ if (false) {}
+});
+
function createUrl(router) {
// This is to make sure we don't references the router object at call time
const {
@@ -149,40 +148,40 @@ function createUrl(router) {
} = router;
return {
get query() {
- if (false) {}
+ warnUrl();
return query;
},
get pathname() {
- if (false) {}
+ warnUrl();
return pathname;
},
get asPath() {
- if (false) {}
+ warnUrl();
return asPath;
},
back: () => {
- if (false) {}
+ warnUrl();
router.back();
},
push: (url, as) => {
- if (false) {}
+ warnUrl();
return router.push(url, as);
},
pushTo: (href, as) => {
- if (false) {}
+ warnUrl();
const pushRoute = as ? href : '';
const pushUrl = as || href;
return router.push(pushRoute, pushUrl);
},
replace: (url, as) => {
- if (false) {}
+ warnUrl();
return router.replace(url, as);
},
replaceTo: (href, as) => {
- if (false) {}
+ warnUrl();
const replaceRoute = as ? href : '';
const replaceUrl = as || href;
return router.replace(replaceRoute, replaceUrl);
Serverless Mode (Increase detected ⚠️ )
General Overall decrease ✓
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
buildDuration | 25.2s | 25.2s | -44ms |
nodeModulesSize | 41.3 MB | 41.2 MB | -64.2 kB |
Client Bundles (main, webpack, commons) Overall decrease ✓
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
main-HASH.js | 18.1 kB | 18.1 kB | -28 B |
main-HASH.js gzip | 6.64 kB | 6.63 kB | -15 B |
webpack-HASH.js | 1.53 kB | 1.53 kB | ✓ |
webpack-HASH.js gzip | 746 B | 746 B | ✓ |
Overall change | -28 B |
Client Bundles (main, webpack, commons) Modern Overall decrease ✓
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
main-HASH.module.js | 16.5 kB | 16.5 kB | -28 B |
main-HASH.module.js gzip | 6.37 kB | 6.36 kB | -14 B |
webpack-HASH.module.js | 1.53 kB | 1.53 kB | ✓ |
webpack-HASH.module.js gzip | 746 B | 746 B | ✓ |
Overall change | -28 B |
Client Pages Overall increase ⚠️
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
_app.js | 1.83 kB | 1.9 kB | |
_app.js gzip | 884 B | 908 B | |
_error.js | 12.1 kB | 12.1 kB | ✓ |
_error.js gzip | 4.76 kB | 4.76 kB | ✓ |
hooks.js | 12.7 kB | 12.7 kB | ✓ |
hooks.js gzip | 4.81 kB | 4.81 kB | ✓ |
index.js | 343 B | 343 B | ✓ |
index.js gzip | 237 B | 237 B | ✓ |
link.js | 8.14 kB | 8.14 kB | ✓ |
link.js gzip | 3.49 kB | 3.49 kB | ✓ |
routerDirect.js | 433 B | 433 B | ✓ |
routerDirect.js gzip | 296 B | 296 B | ✓ |
withRouter.js | 444 B | 444 B | ✓ |
withRouter.js gzip | 294 B | 294 B | ✓ |
Overall change |
Client Pages Modern Overall increase ⚠️
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
_app.module.js | 1.73 kB | 1.79 kB | |
_app.module.js gzip | 840 B | 867 B | |
_error.module.js | 23.3 kB | 23.3 kB | ✓ |
_error.module.js gzip | 8.62 kB | 8.62 kB | ✓ |
hooks.module.js | 1.55 kB | 1.55 kB | ✓ |
hooks.module.js gzip | 804 B | 804 B | ✓ |
index.module.js | 319 B | 319 B | ✓ |
index.module.js gzip | 238 B | 238 B | ✓ |
link.module.js | 8.52 kB | 8.52 kB | ✓ |
link.module.js gzip | 3.68 kB | 3.68 kB | ✓ |
routerDirect.module.js | 419 B | 419 B | ✓ |
routerDirect.module.js gzip | 294 B | 294 B | ✓ |
withRouter.module.js | 429 B | 429 B | ✓ |
withRouter.module.js gzip | 293 B | 293 B | ✓ |
Overall change |
Client Build Manifests
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
_buildManifest.js | 81 B | 81 B | ✓ |
_buildManifest.js gzip | 61 B | 61 B | ✓ |
_buildManifest.module.js | 81 B | 81 B | ✓ |
_buildManifest.module.js gzip | 61 B | 61 B | ✓ |
Overall change | ✓ |
Serverless bundles Overall increase ⚠️
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
_error.js | 247 kB | 248 kB | |
_error.js gzip | 66.4 kB | 66.3 kB | -162 B |
hooks.html | 3.81 kB | 3.81 kB | |
hooks.html gzip | 979 B | 979 B | ✓ |
index.js | 248 kB | 248 kB | |
index.js gzip | 66.5 kB | 66.6 kB | |
link.js | 255 kB | 256 kB | |
link.js gzip | 68.8 kB | 68.8 kB | |
routerDirect.js | 249 kB | 249 kB | |
routerDirect.js gzip | 66.8 kB | 66.8 kB | |
withRouter.js | 248 kB | 249 kB | |
withRouter.js gzip | 66.8 kB | 66.9 kB | |
Overall change |
For anyone interested, we also have a multi-zones setup which uses strictly sibling folders and the {
"builds": [
{ "src": "apps/one/next.config.js", "use": "@now/next" },
{ "src": "apps/two/next.config.js", "use": "@now/next" }
],
"routes": [
{ "src": "/app1/(_next|static)(.*)", "dest": "apps/one/$1$2" },
{ "src": "/app1(.*)", "dest": "apps/one/one$1" },
{ "src": "/app2/(_next|static)(.*)", "dest": "apps/two/$1$2" },
{ "src": "/app2(.*)", "dest": "apps/two/two$1" }
],
"build": {
"env": {
"BUILDING_FOR_NOW": "true"
}
}
} There is no |
Stats from current PRDefault Server Mode (Decrease detected ✓)General
Client Bundles (main, webpack, commons)
Client Bundles (main, webpack, commons) Modern
Client Pages
Client Pages Modern
Client Build Manifests
Rendered Page Sizes Overall decrease ✓
DiffsDiff for index.html@@ -6,9 +6,9 @@
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1"
/>
<meta name="next-head-count" content="2" />
- <link rel="preload" href="/_next/static/btjN4CrEKxUxF5Mhbpa0D/pages/index.module.js"
+ <link rel="preload" href="/_next/static/IAgyzV5W21lhQHyNNXFf7/pages/index.module.js"
as="script" crossorigin="anonymous" />
- <link rel="preload" href="/_next/static/btjN4CrEKxUxF5Mhbpa0D/pages/_app.module.js"
+ <link rel="preload" href="/_next/static/IAgyzV5W21lhQHyNNXFf7/pages/_app.module.js"
as="script" crossorigin="anonymous" />
<link rel="preload" href="/_next/static/runtime/webpack-7928590be3ef2e55b835.module.js"
as="script" crossorigin="anonymous" />
@@ -16,9 +16,9 @@
as="script" crossorigin="anonymous" />
<link rel="preload" href="/_next/static/chunks/framework.cdb73e402d876d4ac87f.module.js"
as="script" crossorigin="anonymous" />
- <link rel="preload" href="/_next/static/chunks/0XGiuwCN9U1PSMJrFXft9d6wwyc=.72ab6ea1ebeafbd8c735.module.js"
+ <link rel="preload" href="/_next/static/chunks/VMLrjJnR0y81nmhkOCGtnQh4nas=.72ab6ea1ebeafbd8c735.module.js"
as="script" crossorigin="anonymous" />
- <link rel="preload" href="/_next/static/btjN4CrEKxUxF5Mhbpa0D/_buildManifest.module.js"
+ <link rel="preload" href="/_next/static/IAgyzV5W21lhQHyNNXFf7/_buildManifest.module.js"
as="script" crossorigin="anonymous" />
</head>
@@ -26,18 +26,18 @@
<div id="__next">Hello world 👋</div>
<script id="__NEXT_DATA__" type="application/json"
crossorigin="anonymous">
- {"dataManager":"[]","props":{"pageProps":{}},"page":"/","query":{},"buildId":"btjN4CrEKxUxF5Mhbpa0D"}
+ {"dataManager":"[]","props":{"pageProps":{}},"page":"/","query":{},"buildId":"IAgyzV5W21lhQHyNNXFf7"}
</script>
<script crossorigin="anonymous" nomodule="">
!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()},!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();
</script>
- <script async="" data-next-page="/" src="/_next/static/btjN4CrEKxUxF5Mhbpa0D/pages/index.js"
+ <script async="" data-next-page="/" src="/_next/static/IAgyzV5W21lhQHyNNXFf7/pages/index.js"
crossorigin="anonymous" nomodule=""></script>
- <script async="" data-next-page="/" src="/_next/static/btjN4CrEKxUxF5Mhbpa0D/pages/index.module.js"
+ <script async="" data-next-page="/" src="/_next/static/IAgyzV5W21lhQHyNNXFf7/pages/index.module.js"
crossorigin="anonymous" type="module"></script>
- <script async="" data-next-page="/_app" src="/_next/static/btjN4CrEKxUxF5Mhbpa0D/pages/_app.js"
+ <script async="" data-next-page="/_app" src="/_next/static/IAgyzV5W21lhQHyNNXFf7/pages/_app.js"
crossorigin="anonymous" nomodule=""></script>
- <script async="" data-next-page="/_app" src="/_next/static/btjN4CrEKxUxF5Mhbpa0D/pages/_app.module.js"
+ <script async="" data-next-page="/_app" src="/_next/static/IAgyzV5W21lhQHyNNXFf7/pages/_app.module.js"
crossorigin="anonymous" type="module"></script>
<script src="/_next/static/runtime/webpack-a470c2a25bcb4d5a8ec0.js"
async="" crossorigin="anonymous" nomodule=""></script>
@@ -51,15 +51,15 @@
async="" crossorigin="anonymous" nomodule=""></script>
<script src="/_next/static/chunks/framework.cdb73e402d876d4ac87f.module.js"
async="" crossorigin="anonymous" type="module"></script>
- <script src="/_next/static/chunks/ZCluLHxOaECvPyb5sqwgxevgS+o=.155621535702fe040780.js"
+ <script src="/_next/static/chunks/0+IMmkXYak4umZF9hSGywINFmLw=.155621535702fe040780.js"
async="" crossorigin="anonymous" nomodule=""></script>
- <script src="/_next/static/chunks/0XGiuwCN9U1PSMJrFXft9d6wwyc=.c99adde05e467047c83e.js"
+ <script src="/_next/static/chunks/VMLrjJnR0y81nmhkOCGtnQh4nas=.c99adde05e467047c83e.js"
async="" crossorigin="anonymous" nomodule=""></script>
- <script src="/_next/static/chunks/0XGiuwCN9U1PSMJrFXft9d6wwyc=.72ab6ea1ebeafbd8c735.module.js"
+ <script src="/_next/static/chunks/VMLrjJnR0y81nmhkOCGtnQh4nas=.72ab6ea1ebeafbd8c735.module.js"
async="" crossorigin="anonymous" type="module"></script>
- <script src="/_next/static/btjN4CrEKxUxF5Mhbpa0D/_buildManifest.js"
+ <script src="/_next/static/IAgyzV5W21lhQHyNNXFf7/_buildManifest.js"
async="" crossorigin="anonymous" nomodule=""></script>
- <script src="/_next/static/btjN4CrEKxUxF5Mhbpa0D/_buildManifest.module.js"
+ <script src="/_next/static/IAgyzV5W21lhQHyNNXFf7/_buildManifest.module.js"
async="" crossorigin="anonymous" type="module"></script>
</body> Diff for link.html@@ -6,19 +6,19 @@
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1"
/>
<meta name="next-head-count" content="2" />
- <link rel="preload" href="/_next/static/btjN4CrEKxUxF5Mhbpa0D/pages/link.module.js"
+ <link rel="preload" href="/_next/static/IAgyzV5W21lhQHyNNXFf7/pages/link.module.js"
as="script" crossorigin="anonymous" />
- <link rel="preload" href="/_next/static/btjN4CrEKxUxF5Mhbpa0D/pages/_app.module.js"
+ <link rel="preload" href="/_next/static/IAgyzV5W21lhQHyNNXFf7/pages/_app.module.js"
as="script" crossorigin="anonymous" />
<link rel="preload" href="/_next/static/runtime/webpack-7928590be3ef2e55b835.module.js"
as="script" crossorigin="anonymous" />
<link rel="preload" href="/_next/static/chunks/framework.cdb73e402d876d4ac87f.module.js"
as="script" crossorigin="anonymous" />
- <link rel="preload" href="/_next/static/chunks/0XGiuwCN9U1PSMJrFXft9d6wwyc=.72ab6ea1ebeafbd8c735.module.js"
+ <link rel="preload" href="/_next/static/chunks/VMLrjJnR0y81nmhkOCGtnQh4nas=.72ab6ea1ebeafbd8c735.module.js"
as="script" crossorigin="anonymous" />
<link rel="preload" href="/_next/static/runtime/main-9c0b8b62a2fb27af35b2.module.js"
as="script" crossorigin="anonymous" />
- <link rel="preload" href="/_next/static/btjN4CrEKxUxF5Mhbpa0D/_buildManifest.module.js"
+ <link rel="preload" href="/_next/static/IAgyzV5W21lhQHyNNXFf7/_buildManifest.module.js"
as="script" crossorigin="anonymous" />
</head>
@@ -29,18 +29,18 @@
</div>
</div>
<script id="__NEXT_DATA__" type="application/json" crossorigin="anonymous">
- {"dataManager":"[]","props":{"pageProps":{}},"page":"/link","query":{},"buildId":"btjN4CrEKxUxF5Mhbpa0D"}
+ {"dataManager":"[]","props":{"pageProps":{}},"page":"/link","query":{},"buildId":"IAgyzV5W21lhQHyNNXFf7"}
</script>
<script crossorigin="anonymous" nomodule="">
!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()},!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();
</script>
- <script async="" data-next-page="/link" src="/_next/static/btjN4CrEKxUxF5Mhbpa0D/pages/link.js"
+ <script async="" data-next-page="/link" src="/_next/static/IAgyzV5W21lhQHyNNXFf7/pages/link.js"
crossorigin="anonymous" nomodule=""></script>
- <script async="" data-next-page="/link" src="/_next/static/btjN4CrEKxUxF5Mhbpa0D/pages/link.module.js"
+ <script async="" data-next-page="/link" src="/_next/static/IAgyzV5W21lhQHyNNXFf7/pages/link.module.js"
crossorigin="anonymous" type="module"></script>
- <script async="" data-next-page="/_app" src="/_next/static/btjN4CrEKxUxF5Mhbpa0D/pages/_app.js"
+ <script async="" data-next-page="/_app" src="/_next/static/IAgyzV5W21lhQHyNNXFf7/pages/_app.js"
crossorigin="anonymous" nomodule=""></script>
- <script async="" data-next-page="/_app" src="/_next/static/btjN4CrEKxUxF5Mhbpa0D/pages/_app.module.js"
+ <script async="" data-next-page="/_app" src="/_next/static/IAgyzV5W21lhQHyNNXFf7/pages/_app.module.js"
crossorigin="anonymous" type="module"></script>
<script src="/_next/static/runtime/webpack-a470c2a25bcb4d5a8ec0.js"
async="" crossorigin="anonymous" nomodule=""></script>
@@ -50,19 +50,19 @@
async="" crossorigin="anonymous" nomodule=""></script>
<script src="/_next/static/chunks/framework.cdb73e402d876d4ac87f.module.js"
async="" crossorigin="anonymous" type="module"></script>
- <script src="/_next/static/chunks/ZCluLHxOaECvPyb5sqwgxevgS+o=.155621535702fe040780.js"
+ <script src="/_next/static/chunks/0+IMmkXYak4umZF9hSGywINFmLw=.155621535702fe040780.js"
async="" crossorigin="anonymous" nomodule=""></script>
- <script src="/_next/static/chunks/0XGiuwCN9U1PSMJrFXft9d6wwyc=.c99adde05e467047c83e.js"
+ <script src="/_next/static/chunks/VMLrjJnR0y81nmhkOCGtnQh4nas=.c99adde05e467047c83e.js"
async="" crossorigin="anonymous" nomodule=""></script>
- <script src="/_next/static/chunks/0XGiuwCN9U1PSMJrFXft9d6wwyc=.72ab6ea1ebeafbd8c735.module.js"
+ <script src="/_next/static/chunks/VMLrjJnR0y81nmhkOCGtnQh4nas=.72ab6ea1ebeafbd8c735.module.js"
async="" crossorigin="anonymous" type="module"></script>
<script src="/_next/static/runtime/main-97617d800ec2b207a20a.js"
async="" crossorigin="anonymous" nomodule=""></script>
<script src="/_next/static/runtime/main-9c0b8b62a2fb27af35b2.module.js"
async="" crossorigin="anonymous" type="module"></script>
- <script src="/_next/static/btjN4CrEKxUxF5Mhbpa0D/_buildManifest.js"
+ <script src="/_next/static/IAgyzV5W21lhQHyNNXFf7/_buildManifest.js"
async="" crossorigin="anonymous" nomodule=""></script>
- <script src="/_next/static/btjN4CrEKxUxF5Mhbpa0D/_buildManifest.module.js"
+ <script src="/_next/static/IAgyzV5W21lhQHyNNXFf7/_buildManifest.module.js"
async="" crossorigin="anonymous" type="module"></script>
</body> Diff for withRouter.html@@ -6,19 +6,19 @@
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1"
/>
<meta name="next-head-count" content="2" />
- <link rel="preload" href="/_next/static/btjN4CrEKxUxF5Mhbpa0D/pages/withRouter.module.js"
+ <link rel="preload" href="/_next/static/IAgyzV5W21lhQHyNNXFf7/pages/withRouter.module.js"
as="script" crossorigin="anonymous" />
- <link rel="preload" href="/_next/static/btjN4CrEKxUxF5Mhbpa0D/pages/_app.module.js"
+ <link rel="preload" href="/_next/static/IAgyzV5W21lhQHyNNXFf7/pages/_app.module.js"
as="script" crossorigin="anonymous" />
<link rel="preload" href="/_next/static/runtime/webpack-7928590be3ef2e55b835.module.js"
as="script" crossorigin="anonymous" />
<link rel="preload" href="/_next/static/chunks/framework.cdb73e402d876d4ac87f.module.js"
as="script" crossorigin="anonymous" />
- <link rel="preload" href="/_next/static/chunks/0XGiuwCN9U1PSMJrFXft9d6wwyc=.72ab6ea1ebeafbd8c735.module.js"
+ <link rel="preload" href="/_next/static/chunks/VMLrjJnR0y81nmhkOCGtnQh4nas=.72ab6ea1ebeafbd8c735.module.js"
as="script" crossorigin="anonymous" />
<link rel="preload" href="/_next/static/runtime/main-9c0b8b62a2fb27af35b2.module.js"
as="script" crossorigin="anonymous" />
- <link rel="preload" href="/_next/static/btjN4CrEKxUxF5Mhbpa0D/_buildManifest.module.js"
+ <link rel="preload" href="/_next/static/IAgyzV5W21lhQHyNNXFf7/_buildManifest.module.js"
as="script" crossorigin="anonymous" />
</head>
@@ -27,18 +27,18 @@
<div>I use withRouter</div>
</div>
<script id="__NEXT_DATA__" type="application/json" crossorigin="anonymous">
- {"dataManager":"[]","props":{"pageProps":{}},"page":"/withRouter","query":{},"buildId":"btjN4CrEKxUxF5Mhbpa0D"}
+ {"dataManager":"[]","props":{"pageProps":{}},"page":"/withRouter","query":{},"buildId":"IAgyzV5W21lhQHyNNXFf7"}
</script>
<script crossorigin="anonymous" nomodule="">
!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()},!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();
</script>
- <script async="" data-next-page="/withRouter" src="/_next/static/btjN4CrEKxUxF5Mhbpa0D/pages/withRouter.js"
+ <script async="" data-next-page="/withRouter" src="/_next/static/IAgyzV5W21lhQHyNNXFf7/pages/withRouter.js"
crossorigin="anonymous" nomodule=""></script>
- <script async="" data-next-page="/withRouter" src="/_next/static/btjN4CrEKxUxF5Mhbpa0D/pages/withRouter.module.js"
+ <script async="" data-next-page="/withRouter" src="/_next/static/IAgyzV5W21lhQHyNNXFf7/pages/withRouter.module.js"
crossorigin="anonymous" type="module"></script>
- <script async="" data-next-page="/_app" src="/_next/static/btjN4CrEKxUxF5Mhbpa0D/pages/_app.js"
+ <script async="" data-next-page="/_app" src="/_next/static/IAgyzV5W21lhQHyNNXFf7/pages/_app.js"
crossorigin="anonymous" nomodule=""></script>
- <script async="" data-next-page="/_app" src="/_next/static/btjN4CrEKxUxF5Mhbpa0D/pages/_app.module.js"
+ <script async="" data-next-page="/_app" src="/_next/static/IAgyzV5W21lhQHyNNXFf7/pages/_app.module.js"
crossorigin="anonymous" type="module"></script>
<script src="/_next/static/runtime/webpack-a470c2a25bcb4d5a8ec0.js"
async="" crossorigin="anonymous" nomodule=""></script>
@@ -48,19 +48,19 @@
async="" crossorigin="anonymous" nomodule=""></script>
<script src="/_next/static/chunks/framework.cdb73e402d876d4ac87f.module.js"
async="" crossorigin="anonymous" type="module"></script>
- <script src="/_next/static/chunks/ZCluLHxOaECvPyb5sqwgxevgS+o=.155621535702fe040780.js"
+ <script src="/_next/static/chunks/0+IMmkXYak4umZF9hSGywINFmLw=.155621535702fe040780.js"
async="" crossorigin="anonymous" nomodule=""></script>
- <script src="/_next/static/chunks/0XGiuwCN9U1PSMJrFXft9d6wwyc=.c99adde05e467047c83e.js"
+ <script src="/_next/static/chunks/VMLrjJnR0y81nmhkOCGtnQh4nas=.c99adde05e467047c83e.js"
async="" crossorigin="anonymous" nomodule=""></script>
- <script src="/_next/static/chunks/0XGiuwCN9U1PSMJrFXft9d6wwyc=.72ab6ea1ebeafbd8c735.module.js"
+ <script src="/_next/static/chunks/VMLrjJnR0y81nmhkOCGtnQh4nas=.72ab6ea1ebeafbd8c735.module.js"
async="" crossorigin="anonymous" type="module"></script>
<script src="/_next/static/runtime/main-97617d800ec2b207a20a.js"
async="" crossorigin="anonymous" nomodule=""></script>
<script src="/_next/static/runtime/main-9c0b8b62a2fb27af35b2.module.js"
async="" crossorigin="anonymous" type="module"></script>
- <script src="/_next/static/btjN4CrEKxUxF5Mhbpa0D/_buildManifest.js"
+ <script src="/_next/static/IAgyzV5W21lhQHyNNXFf7/_buildManifest.js"
async="" crossorigin="anonymous" nomodule=""></script>
- <script src="/_next/static/btjN4CrEKxUxF5Mhbpa0D/_buildManifest.module.js"
+ <script src="/_next/static/IAgyzV5W21lhQHyNNXFf7/_buildManifest.module.js"
async="" crossorigin="anonymous" type="module"></script>
</body> Serverless Mode (Increase detected
|
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
buildDuration | 21.3s | 22s | |
nodeModulesSize | 41.3 MB | 41.3 MB | ✓ |
Client Bundles (main, webpack, commons)
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
main-HASH.js | 18.1 kB | 18.1 kB | ✓ |
main-HASH.js gzip | 6.64 kB | 6.64 kB | ✓ |
webpack-HASH.js | 1.53 kB | 1.53 kB | ✓ |
webpack-HASH.js gzip | 746 B | 746 B | ✓ |
Overall change | ✓ |
Client Bundles (main, webpack, commons) Modern
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
main-HASH.module.js | 16.5 kB | 16.5 kB | ✓ |
main-HASH.module.js gzip | 6.37 kB | 6.37 kB | ✓ |
webpack-HASH.module.js | 1.53 kB | 1.53 kB | ✓ |
webpack-HASH.module.js gzip | 746 B | 746 B | ✓ |
Overall change | ✓ |
Client Pages
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
_app.js | 1.83 kB | 1.83 kB | ✓ |
_app.js gzip | 884 B | 884 B | ✓ |
_error.js | 12.1 kB | 12.1 kB | ✓ |
_error.js gzip | 4.76 kB | 4.76 kB | ✓ |
hooks.js | 12.7 kB | 12.7 kB | ✓ |
hooks.js gzip | 4.81 kB | 4.81 kB | ✓ |
index.js | 343 B | 343 B | ✓ |
index.js gzip | 237 B | 237 B | ✓ |
link.js | 8.14 kB | 8.14 kB | ✓ |
link.js gzip | 3.49 kB | 3.49 kB | ✓ |
routerDirect.js | 433 B | 433 B | ✓ |
routerDirect.js gzip | 296 B | 296 B | ✓ |
withRouter.js | 444 B | 444 B | ✓ |
withRouter.js gzip | 294 B | 294 B | ✓ |
Overall change | ✓ |
Client Pages Modern
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
_app.module.js | 1.73 kB | 1.73 kB | ✓ |
_app.module.js gzip | 840 B | 840 B | ✓ |
_error.module.js | 23.3 kB | 23.3 kB | ✓ |
_error.module.js gzip | 8.62 kB | 8.62 kB | ✓ |
hooks.module.js | 1.55 kB | 1.55 kB | ✓ |
hooks.module.js gzip | 804 B | 804 B | ✓ |
index.module.js | 319 B | 319 B | ✓ |
index.module.js gzip | 238 B | 238 B | ✓ |
link.module.js | 8.52 kB | 8.52 kB | ✓ |
link.module.js gzip | 3.68 kB | 3.68 kB | ✓ |
routerDirect.module.js | 419 B | 419 B | ✓ |
routerDirect.module.js gzip | 294 B | 294 B | ✓ |
withRouter.module.js | 429 B | 429 B | ✓ |
withRouter.module.js gzip | 293 B | 293 B | ✓ |
Overall change | ✓ |
Client Build Manifests
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
_buildManifest.js | 81 B | 81 B | ✓ |
_buildManifest.js gzip | 61 B | 61 B | ✓ |
_buildManifest.module.js | 81 B | 81 B | ✓ |
_buildManifest.module.js gzip | 61 B | 61 B | ✓ |
Overall change | ✓ |
Serverless bundles Overall increase ⚠️
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
_error.js | 247 kB | 247 kB | |
_error.js gzip | 66.4 kB | 66.3 kB | -108 B |
hooks.html | 3.81 kB | 3.81 kB | |
hooks.html gzip | 979 B | 979 B | ✓ |
index.js | 248 kB | 248 kB | |
index.js gzip | 66.7 kB | 66.6 kB | -73 B |
link.js | 255 kB | 255 kB | |
link.js gzip | 68.9 kB | 68.9 kB | -4 B |
routerDirect.js | 249 kB | 249 kB | |
routerDirect.js gzip | 66.7 kB | 66.8 kB | |
withRouter.js | 248 kB | 248 kB | |
withRouter.js gzip | 66.6 kB | 66.7 kB | |
Overall change |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Happy we got this working! Just a few tweaks.
Applies suggestions from code review. Co-Authored-By: Joe Haddad <timer150@gmail.com>
Stats from current PRDefault Server ModeGeneral
Client Bundles (main, webpack, commons)
Client Bundles (main, webpack, commons) Modern
Client Pages
Client Pages Modern
Client Build Manifests
Rendered Page Sizes
Serverless Mode (Decrease detected ✓)General
Client Bundles (main, webpack, commons)
Client Bundles (main, webpack, commons) Modern
Client Pages
Client Pages Modern
Client Build Manifests
Serverless bundles Overall decrease ✓
|
Co-Authored-By: Joe Haddad <timer150@gmail.com>
Stats from current PRDefault Server ModeGeneral
Client Bundles (main, webpack, commons)
Client Bundles (main, webpack, commons) Modern
Client Pages
Client Pages Modern
Client Build Manifests
Rendered Page Sizes
Serverless ModeGeneral
Client Bundles (main, webpack, commons)
Client Bundles (main, webpack, commons) Modern
Client Pages
Client Pages Modern
Client Build Manifests
Serverless bundles
|
Suggested edits committed, PR description updated, the PR is ready for review. Thanks a lot for helping with this, @Timer! |
Stats from current PRDefault Server Mode (Decrease detected ✓)General
Client Bundles (main, webpack, commons)
Client Bundles (main, webpack, commons) Modern
Client Pages
Client Pages Modern
Client Build Manifests
Rendered Page Sizes Overall decrease ✓
DiffsDiff for index.html@@ -6,9 +6,9 @@
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1"
/>
<meta name="next-head-count" content="2" />
- <link rel="preload" href="/_next/static/fqWqEIeskASYJsDDStzlv/pages/index.module.js"
+ <link rel="preload" href="/_next/static/fRmuVzmPTMkG6nTYWpIvj/pages/index.module.js"
as="script" crossorigin="anonymous" />
- <link rel="preload" href="/_next/static/fqWqEIeskASYJsDDStzlv/pages/_app.module.js"
+ <link rel="preload" href="/_next/static/fRmuVzmPTMkG6nTYWpIvj/pages/_app.module.js"
as="script" crossorigin="anonymous" />
<link rel="preload" href="/_next/static/runtime/webpack-7928590be3ef2e55b835.module.js"
as="script" crossorigin="anonymous" />
@@ -16,9 +16,9 @@
as="script" crossorigin="anonymous" />
<link rel="preload" href="/_next/static/chunks/framework.cdb73e402d876d4ac87f.module.js"
as="script" crossorigin="anonymous" />
- <link rel="preload" href="/_next/static/chunks/iR2OqHyscLsCfT09W4xgf1njTSU=.72ab6ea1ebeafbd8c735.module.js"
+ <link rel="preload" href="/_next/static/chunks/qsJu4Dw6NhRsGBzaeCAzlgUY64Q=.72ab6ea1ebeafbd8c735.module.js"
as="script" crossorigin="anonymous" />
- <link rel="preload" href="/_next/static/fqWqEIeskASYJsDDStzlv/_buildManifest.module.js"
+ <link rel="preload" href="/_next/static/fRmuVzmPTMkG6nTYWpIvj/_buildManifest.module.js"
as="script" crossorigin="anonymous" />
</head>
@@ -26,18 +26,18 @@
<div id="__next">Hello world 👋</div>
<script id="__NEXT_DATA__" type="application/json"
crossorigin="anonymous">
- {"dataManager":"[]","props":{"pageProps":{}},"page":"/","query":{},"buildId":"fqWqEIeskASYJsDDStzlv"}
+ {"dataManager":"[]","props":{"pageProps":{}},"page":"/","query":{},"buildId":"fRmuVzmPTMkG6nTYWpIvj"}
</script>
<script crossorigin="anonymous" nomodule="">
!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()},!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();
</script>
- <script async="" data-next-page="/" src="/_next/static/fqWqEIeskASYJsDDStzlv/pages/index.js"
+ <script async="" data-next-page="/" src="/_next/static/fRmuVzmPTMkG6nTYWpIvj/pages/index.js"
crossorigin="anonymous" nomodule=""></script>
- <script async="" data-next-page="/" src="/_next/static/fqWqEIeskASYJsDDStzlv/pages/index.module.js"
+ <script async="" data-next-page="/" src="/_next/static/fRmuVzmPTMkG6nTYWpIvj/pages/index.module.js"
crossorigin="anonymous" type="module"></script>
- <script async="" data-next-page="/_app" src="/_next/static/fqWqEIeskASYJsDDStzlv/pages/_app.js"
+ <script async="" data-next-page="/_app" src="/_next/static/fRmuVzmPTMkG6nTYWpIvj/pages/_app.js"
crossorigin="anonymous" nomodule=""></script>
- <script async="" data-next-page="/_app" src="/_next/static/fqWqEIeskASYJsDDStzlv/pages/_app.module.js"
+ <script async="" data-next-page="/_app" src="/_next/static/fRmuVzmPTMkG6nTYWpIvj/pages/_app.module.js"
crossorigin="anonymous" type="module"></script>
<script src="/_next/static/runtime/webpack-a470c2a25bcb4d5a8ec0.js"
async="" crossorigin="anonymous" nomodule=""></script>
@@ -51,15 +51,15 @@
async="" crossorigin="anonymous" nomodule=""></script>
<script src="/_next/static/chunks/framework.cdb73e402d876d4ac87f.module.js"
async="" crossorigin="anonymous" type="module"></script>
- <script src="/_next/static/chunks/jcr82aS7Im6o9hjPPoZ7d1S++c=.155621535702fe040780.js"
+ <script src="/_next/static/chunks/Yh7b0bCts0r+lkU6egZldDuykg=.155621535702fe040780.js"
async="" crossorigin="anonymous" nomodule=""></script>
- <script src="/_next/static/chunks/iR2OqHyscLsCfT09W4xgf1njTSU=.c99adde05e467047c83e.js"
+ <script src="/_next/static/chunks/qsJu4Dw6NhRsGBzaeCAzlgUY64Q=.c99adde05e467047c83e.js"
async="" crossorigin="anonymous" nomodule=""></script>
- <script src="/_next/static/chunks/iR2OqHyscLsCfT09W4xgf1njTSU=.72ab6ea1ebeafbd8c735.module.js"
+ <script src="/_next/static/chunks/qsJu4Dw6NhRsGBzaeCAzlgUY64Q=.72ab6ea1ebeafbd8c735.module.js"
async="" crossorigin="anonymous" type="module"></script>
- <script src="/_next/static/fqWqEIeskASYJsDDStzlv/_buildManifest.js"
+ <script src="/_next/static/fRmuVzmPTMkG6nTYWpIvj/_buildManifest.js"
async="" crossorigin="anonymous" nomodule=""></script>
- <script src="/_next/static/fqWqEIeskASYJsDDStzlv/_buildManifest.module.js"
+ <script src="/_next/static/fRmuVzmPTMkG6nTYWpIvj/_buildManifest.module.js"
async="" crossorigin="anonymous" type="module"></script>
</body> Diff for link.html@@ -6,19 +6,19 @@
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1"
/>
<meta name="next-head-count" content="2" />
- <link rel="preload" href="/_next/static/fqWqEIeskASYJsDDStzlv/pages/link.module.js"
+ <link rel="preload" href="/_next/static/fRmuVzmPTMkG6nTYWpIvj/pages/link.module.js"
as="script" crossorigin="anonymous" />
- <link rel="preload" href="/_next/static/fqWqEIeskASYJsDDStzlv/pages/_app.module.js"
+ <link rel="preload" href="/_next/static/fRmuVzmPTMkG6nTYWpIvj/pages/_app.module.js"
as="script" crossorigin="anonymous" />
<link rel="preload" href="/_next/static/runtime/webpack-7928590be3ef2e55b835.module.js"
as="script" crossorigin="anonymous" />
<link rel="preload" href="/_next/static/chunks/framework.cdb73e402d876d4ac87f.module.js"
as="script" crossorigin="anonymous" />
- <link rel="preload" href="/_next/static/chunks/iR2OqHyscLsCfT09W4xgf1njTSU=.72ab6ea1ebeafbd8c735.module.js"
+ <link rel="preload" href="/_next/static/chunks/qsJu4Dw6NhRsGBzaeCAzlgUY64Q=.72ab6ea1ebeafbd8c735.module.js"
as="script" crossorigin="anonymous" />
<link rel="preload" href="/_next/static/runtime/main-9c0b8b62a2fb27af35b2.module.js"
as="script" crossorigin="anonymous" />
- <link rel="preload" href="/_next/static/fqWqEIeskASYJsDDStzlv/_buildManifest.module.js"
+ <link rel="preload" href="/_next/static/fRmuVzmPTMkG6nTYWpIvj/_buildManifest.module.js"
as="script" crossorigin="anonymous" />
</head>
@@ -29,18 +29,18 @@
</div>
</div>
<script id="__NEXT_DATA__" type="application/json" crossorigin="anonymous">
- {"dataManager":"[]","props":{"pageProps":{}},"page":"/link","query":{},"buildId":"fqWqEIeskASYJsDDStzlv"}
+ {"dataManager":"[]","props":{"pageProps":{}},"page":"/link","query":{},"buildId":"fRmuVzmPTMkG6nTYWpIvj"}
</script>
<script crossorigin="anonymous" nomodule="">
!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()},!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();
</script>
- <script async="" data-next-page="/link" src="/_next/static/fqWqEIeskASYJsDDStzlv/pages/link.js"
+ <script async="" data-next-page="/link" src="/_next/static/fRmuVzmPTMkG6nTYWpIvj/pages/link.js"
crossorigin="anonymous" nomodule=""></script>
- <script async="" data-next-page="/link" src="/_next/static/fqWqEIeskASYJsDDStzlv/pages/link.module.js"
+ <script async="" data-next-page="/link" src="/_next/static/fRmuVzmPTMkG6nTYWpIvj/pages/link.module.js"
crossorigin="anonymous" type="module"></script>
- <script async="" data-next-page="/_app" src="/_next/static/fqWqEIeskASYJsDDStzlv/pages/_app.js"
+ <script async="" data-next-page="/_app" src="/_next/static/fRmuVzmPTMkG6nTYWpIvj/pages/_app.js"
crossorigin="anonymous" nomodule=""></script>
- <script async="" data-next-page="/_app" src="/_next/static/fqWqEIeskASYJsDDStzlv/pages/_app.module.js"
+ <script async="" data-next-page="/_app" src="/_next/static/fRmuVzmPTMkG6nTYWpIvj/pages/_app.module.js"
crossorigin="anonymous" type="module"></script>
<script src="/_next/static/runtime/webpack-a470c2a25bcb4d5a8ec0.js"
async="" crossorigin="anonymous" nomodule=""></script>
@@ -50,19 +50,19 @@
async="" crossorigin="anonymous" nomodule=""></script>
<script src="/_next/static/chunks/framework.cdb73e402d876d4ac87f.module.js"
async="" crossorigin="anonymous" type="module"></script>
- <script src="/_next/static/chunks/jcr82aS7Im6o9hjPPoZ7d1S++c=.155621535702fe040780.js"
+ <script src="/_next/static/chunks/Yh7b0bCts0r+lkU6egZldDuykg=.155621535702fe040780.js"
async="" crossorigin="anonymous" nomodule=""></script>
- <script src="/_next/static/chunks/iR2OqHyscLsCfT09W4xgf1njTSU=.c99adde05e467047c83e.js"
+ <script src="/_next/static/chunks/qsJu4Dw6NhRsGBzaeCAzlgUY64Q=.c99adde05e467047c83e.js"
async="" crossorigin="anonymous" nomodule=""></script>
- <script src="/_next/static/chunks/iR2OqHyscLsCfT09W4xgf1njTSU=.72ab6ea1ebeafbd8c735.module.js"
+ <script src="/_next/static/chunks/qsJu4Dw6NhRsGBzaeCAzlgUY64Q=.72ab6ea1ebeafbd8c735.module.js"
async="" crossorigin="anonymous" type="module"></script>
<script src="/_next/static/runtime/main-97617d800ec2b207a20a.js"
async="" crossorigin="anonymous" nomodule=""></script>
<script src="/_next/static/runtime/main-9c0b8b62a2fb27af35b2.module.js"
async="" crossorigin="anonymous" type="module"></script>
- <script src="/_next/static/fqWqEIeskASYJsDDStzlv/_buildManifest.js"
+ <script src="/_next/static/fRmuVzmPTMkG6nTYWpIvj/_buildManifest.js"
async="" crossorigin="anonymous" nomodule=""></script>
- <script src="/_next/static/fqWqEIeskASYJsDDStzlv/_buildManifest.module.js"
+ <script src="/_next/static/fRmuVzmPTMkG6nTYWpIvj/_buildManifest.module.js"
async="" crossorigin="anonymous" type="module"></script>
</body> Diff for withRouter.html@@ -6,19 +6,19 @@
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1"
/>
<meta name="next-head-count" content="2" />
- <link rel="preload" href="/_next/static/fqWqEIeskASYJsDDStzlv/pages/withRouter.module.js"
+ <link rel="preload" href="/_next/static/fRmuVzmPTMkG6nTYWpIvj/pages/withRouter.module.js"
as="script" crossorigin="anonymous" />
- <link rel="preload" href="/_next/static/fqWqEIeskASYJsDDStzlv/pages/_app.module.js"
+ <link rel="preload" href="/_next/static/fRmuVzmPTMkG6nTYWpIvj/pages/_app.module.js"
as="script" crossorigin="anonymous" />
<link rel="preload" href="/_next/static/runtime/webpack-7928590be3ef2e55b835.module.js"
as="script" crossorigin="anonymous" />
<link rel="preload" href="/_next/static/chunks/framework.cdb73e402d876d4ac87f.module.js"
as="script" crossorigin="anonymous" />
- <link rel="preload" href="/_next/static/chunks/iR2OqHyscLsCfT09W4xgf1njTSU=.72ab6ea1ebeafbd8c735.module.js"
+ <link rel="preload" href="/_next/static/chunks/qsJu4Dw6NhRsGBzaeCAzlgUY64Q=.72ab6ea1ebeafbd8c735.module.js"
as="script" crossorigin="anonymous" />
<link rel="preload" href="/_next/static/runtime/main-9c0b8b62a2fb27af35b2.module.js"
as="script" crossorigin="anonymous" />
- <link rel="preload" href="/_next/static/fqWqEIeskASYJsDDStzlv/_buildManifest.module.js"
+ <link rel="preload" href="/_next/static/fRmuVzmPTMkG6nTYWpIvj/_buildManifest.module.js"
as="script" crossorigin="anonymous" />
</head>
@@ -27,18 +27,18 @@
<div>I use withRouter</div>
</div>
<script id="__NEXT_DATA__" type="application/json" crossorigin="anonymous">
- {"dataManager":"[]","props":{"pageProps":{}},"page":"/withRouter","query":{},"buildId":"fqWqEIeskASYJsDDStzlv"}
+ {"dataManager":"[]","props":{"pageProps":{}},"page":"/withRouter","query":{},"buildId":"fRmuVzmPTMkG6nTYWpIvj"}
</script>
<script crossorigin="anonymous" nomodule="">
!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()},!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();
</script>
- <script async="" data-next-page="/withRouter" src="/_next/static/fqWqEIeskASYJsDDStzlv/pages/withRouter.js"
+ <script async="" data-next-page="/withRouter" src="/_next/static/fRmuVzmPTMkG6nTYWpIvj/pages/withRouter.js"
crossorigin="anonymous" nomodule=""></script>
- <script async="" data-next-page="/withRouter" src="/_next/static/fqWqEIeskASYJsDDStzlv/pages/withRouter.module.js"
+ <script async="" data-next-page="/withRouter" src="/_next/static/fRmuVzmPTMkG6nTYWpIvj/pages/withRouter.module.js"
crossorigin="anonymous" type="module"></script>
- <script async="" data-next-page="/_app" src="/_next/static/fqWqEIeskASYJsDDStzlv/pages/_app.js"
+ <script async="" data-next-page="/_app" src="/_next/static/fRmuVzmPTMkG6nTYWpIvj/pages/_app.js"
crossorigin="anonymous" nomodule=""></script>
- <script async="" data-next-page="/_app" src="/_next/static/fqWqEIeskASYJsDDStzlv/pages/_app.module.js"
+ <script async="" data-next-page="/_app" src="/_next/static/fRmuVzmPTMkG6nTYWpIvj/pages/_app.module.js"
crossorigin="anonymous" type="module"></script>
<script src="/_next/static/runtime/webpack-a470c2a25bcb4d5a8ec0.js"
async="" crossorigin="anonymous" nomodule=""></script>
@@ -48,19 +48,19 @@
async="" crossorigin="anonymous" nomodule=""></script>
<script src="/_next/static/chunks/framework.cdb73e402d876d4ac87f.module.js"
async="" crossorigin="anonymous" type="module"></script>
- <script src="/_next/static/chunks/jcr82aS7Im6o9hjPPoZ7d1S++c=.155621535702fe040780.js"
+ <script src="/_next/static/chunks/Yh7b0bCts0r+lkU6egZldDuykg=.155621535702fe040780.js"
async="" crossorigin="anonymous" nomodule=""></script>
- <script src="/_next/static/chunks/iR2OqHyscLsCfT09W4xgf1njTSU=.c99adde05e467047c83e.js"
+ <script src="/_next/static/chunks/qsJu4Dw6NhRsGBzaeCAzlgUY64Q=.c99adde05e467047c83e.js"
async="" crossorigin="anonymous" nomodule=""></script>
- <script src="/_next/static/chunks/iR2OqHyscLsCfT09W4xgf1njTSU=.72ab6ea1ebeafbd8c735.module.js"
+ <script src="/_next/static/chunks/qsJu4Dw6NhRsGBzaeCAzlgUY64Q=.72ab6ea1ebeafbd8c735.module.js"
async="" crossorigin="anonymous" type="module"></script>
<script src="/_next/static/runtime/main-97617d800ec2b207a20a.js"
async="" crossorigin="anonymous" nomodule=""></script>
<script src="/_next/static/runtime/main-9c0b8b62a2fb27af35b2.module.js"
async="" crossorigin="anonymous" type="module"></script>
- <script src="/_next/static/fqWqEIeskASYJsDDStzlv/_buildManifest.js"
+ <script src="/_next/static/fRmuVzmPTMkG6nTYWpIvj/_buildManifest.js"
async="" crossorigin="anonymous" nomodule=""></script>
- <script src="/_next/static/fqWqEIeskASYJsDDStzlv/_buildManifest.module.js"
+ <script src="/_next/static/fRmuVzmPTMkG6nTYWpIvj/_buildManifest.module.js"
async="" crossorigin="anonymous" type="module"></script>
</body> Serverless Mode (Increase detected
|
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
buildDuration | 26.1s | 26.5s | |
nodeModulesSize | 41.3 MB | 41.3 MB | ✓ |
Client Bundles (main, webpack, commons)
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
main-HASH.js | 18.1 kB | 18.1 kB | ✓ |
main-HASH.js gzip | 6.64 kB | 6.64 kB | ✓ |
webpack-HASH.js | 1.53 kB | 1.53 kB | ✓ |
webpack-HASH.js gzip | 746 B | 746 B | ✓ |
Overall change | ✓ |
Client Bundles (main, webpack, commons) Modern
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
main-HASH.module.js | 16.5 kB | 16.5 kB | ✓ |
main-HASH.module.js gzip | 6.37 kB | 6.37 kB | ✓ |
webpack-HASH.module.js | 1.53 kB | 1.53 kB | ✓ |
webpack-HASH.module.js gzip | 746 B | 746 B | ✓ |
Overall change | ✓ |
Client Pages
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
_app.js | 1.83 kB | 1.83 kB | ✓ |
_app.js gzip | 884 B | 884 B | ✓ |
_error.js | 12.1 kB | 12.1 kB | ✓ |
_error.js gzip | 4.76 kB | 4.76 kB | ✓ |
hooks.js | 12.7 kB | 12.7 kB | ✓ |
hooks.js gzip | 4.81 kB | 4.81 kB | ✓ |
index.js | 343 B | 343 B | ✓ |
index.js gzip | 237 B | 237 B | ✓ |
link.js | 8.14 kB | 8.14 kB | ✓ |
link.js gzip | 3.49 kB | 3.49 kB | ✓ |
routerDirect.js | 433 B | 433 B | ✓ |
routerDirect.js gzip | 296 B | 296 B | ✓ |
withRouter.js | 444 B | 444 B | ✓ |
withRouter.js gzip | 294 B | 294 B | ✓ |
Overall change | ✓ |
Client Pages Modern
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
_app.module.js | 1.73 kB | 1.73 kB | ✓ |
_app.module.js gzip | 840 B | 840 B | ✓ |
_error.module.js | 23.3 kB | 23.3 kB | ✓ |
_error.module.js gzip | 8.62 kB | 8.62 kB | ✓ |
hooks.module.js | 1.55 kB | 1.55 kB | ✓ |
hooks.module.js gzip | 804 B | 804 B | ✓ |
index.module.js | 319 B | 319 B | ✓ |
index.module.js gzip | 238 B | 238 B | ✓ |
link.module.js | 8.52 kB | 8.52 kB | ✓ |
link.module.js gzip | 3.68 kB | 3.68 kB | ✓ |
routerDirect.module.js | 419 B | 419 B | ✓ |
routerDirect.module.js gzip | 294 B | 294 B | ✓ |
withRouter.module.js | 429 B | 429 B | ✓ |
withRouter.module.js gzip | 293 B | 293 B | ✓ |
Overall change | ✓ |
Client Build Manifests
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
_buildManifest.js | 81 B | 81 B | ✓ |
_buildManifest.js gzip | 61 B | 61 B | ✓ |
_buildManifest.module.js | 81 B | 81 B | ✓ |
_buildManifest.module.js gzip | 61 B | 61 B | ✓ |
Overall change | ✓ |
Serverless bundles Overall increase ⚠️
zeit/next.js canary | borekb/next.js with-zones-example-update | Change | |
---|---|---|---|
_error.js | 247 kB | 247 kB | |
_error.js gzip | 66.5 kB | 66.3 kB | -121 B |
hooks.html | 3.81 kB | 3.81 kB | |
hooks.html gzip | 981 B | 982 B | |
index.js | 248 kB | 248 kB | |
index.js gzip | 66.6 kB | 66.6 kB | |
link.js | 255 kB | 255 kB | |
link.js gzip | 68.9 kB | 68.7 kB | -134 B |
routerDirect.js | 249 kB | 249 kB | |
routerDirect.js gzip | 66.7 kB | 66.7 kB | -67 B |
withRouter.js | 248 kB | 248 kB | |
withRouter.js gzip | 66.7 kB | 66.7 kB | -9 B |
Overall change |
Sparked by discussions in #7488, #8426, #8440 and this Spectrum thread, I wanted to make sure that the
with-zones
example works and that it demonstrates all the challenges with multi-zones setup.Main changes in this PR:
now.json
routing was updated withcontinue: true
, see Next.js & Now –continue: true
is required for dynamic routing #8440.now dev
is currently broken withcontinue: true
, see [now dev] Needscontinue: true
+dest
support vercel#2685.next dev
. DynamicassetPrefix
innext.config.js
is a key./static
assets from a zoned app.Original description
Specifically, things that were not clear to me:
now.json
for blog:"dest": "blog/blog"
correct? Seems like "one 'blog' too many".continue: true
be added? It's supposed to be used according to Update Zones Documentation #8426 (comment).When playing with the example, I've done these main changes:
blog/pages/blog/post/[id].js
page to showcase dynamic routing. af0a909assetPrefix
configuration so that the 'blog' app can run both separately vianext dev
and together with 'home' in a multi-zoned app, vianow dev
. d75c6c9I also tried adding
continue: true
, withnow.json
looking like this:However, that was not working for me at all –
localhost:3000
just displaying technical Now pages like directory listings. @Timer, am I doing something wrong here? (I have to admit that I prefer the older way anyway as I don't need to do negative lookaheads but still...)