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

API interface extensions #7363

Merged
merged 28 commits into from
Jun 5, 2019
Merged

API interface extensions #7363

merged 28 commits into from
Jun 5, 2019

Conversation

huv1k
Copy link
Contributor

@huv1k huv1k commented May 16, 2019

This improves the interface for API routes.

  • Cookies parsing for req.cookie
  • Query parsing for req.query
  • Body parsing fro req.body
  • Possibility to send data with req.send
  • Possibility to send data with req.json

@github-actions
Copy link
Contributor

Stats from current PR

Click to expand stats
zeit/next.js canary huv1k/next.js api-extension Change
Build Duration 14s 14.5s ⚠️ +426ms
node_modules Size 40 MB 40 MB ⚠️ +20.1 kB
Total Bundle (main, webpack, commons) Size 209 kB 209 kB
Total Bundle (main, webpack, commons) gzip Size 68.3 kB 68.3 kB ⚠️ +1 B
Client _app Size 2.54 kB 2.54 kB
Client _app gzip Size 1.05 kB 1.05 kB
Client _error Size 8.19 kB 8.19 kB
Client _error gzip Size 3.11 kB 3.12 kB ⚠️ +1 B
Client pages/index Size 288 B 288 B
Client pages/index gzip Size 222 B 222 B
Client pages/link Size 4.83 kB 4.83 kB
Client pages/link gzip Size 2.11 kB 2.11 kB
Client pages/routerDirect Size 411 B 411 B
Client pages/routerDirect gzip Size 296 B 296 B
Client pages/withRouter Size 393 B 393 B
Client pages/withRouter gzip Size 280 B 280 B
Client main Size 23.3 kB 23.3 kB
Client main gzip Size 7.63 kB 7.63 kB ⚠️ +1 B
Client commons Size 183 kB 183 kB
Client commons gzip Size 59.4 kB 59.4 kB
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 769 B 769 B
Base Rendered Size 1.34 kB 1.34 kB
Build Dir Size 801 kB 801 kB
Click to expand serverless stats
zeit/next.js canary huv1k/next.js api-extension Change
Build Duration 15.8s 15.5s -319ms
node_modules Size 40 MB 40 MB ⚠️ +20.1 kB
Total Bundle (main, webpack, commons) Size 209 kB 209 kB
Total Bundle (main, webpack, commons) gzip Size 68.3 kB 68.3 kB
Client _app Size 2.54 kB 2.54 kB
Client _app gzip Size 1.05 kB 1.05 kB
Client _error Size 8.19 kB 8.19 kB
Client _error gzip Size 3.12 kB 3.12 kB
Client pages/index Size 288 B 288 B
Client pages/index gzip Size 222 B 222 B
Client pages/link Size 4.83 kB 4.83 kB
Client pages/link gzip Size 2.11 kB 2.11 kB
Client pages/routerDirect Size 411 B 411 B
Client pages/routerDirect gzip Size 296 B 296 B
Client pages/withRouter Size 393 B 393 B
Client pages/withRouter gzip Size 280 B 280 B
Client main Size 23.3 kB 23.3 kB
Client main gzip Size 7.63 kB 7.63 kB
Client commons Size 183 kB 183 kB
Client commons gzip Size 59.4 kB 59.4 kB
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 769 B 769 B
Serverless pages/link Size 342 kB 342 kB
Serverless pages/link gzip Size 88.7 kB 88.7 kB ⚠️ +1 B
Serverless pages/index Size 333 kB 333 kB
Serverless pages/index gzip Size 86.3 kB 86.3 kB ⚠️ +2 B
Serverless pages/_error Size 334 kB 334 kB
Serverless pages/_error gzip Size 86.1 kB 86.1 kB ⚠️ +1 B
Serverless pages/routerDirect Size 333 kB 333 kB
Serverless pages/routerDirect gzip Size 86.3 kB 86.3 kB ⚠️ +2 B
Serverless pages/withRouter Size 333 kB 333 kB
Serverless pages/withRouter gzip Size 86.4 kB 86.4 kB ⚠️ +2 B
Build Dir Size 2.37 MB 2.37 MB

@Janpot
Copy link
Contributor

Janpot commented May 16, 2019

I wouldn't do body parsing out of the box. What if I want to consume the incoming message as a stream? What if I intend to just proxy it?

@github-actions
Copy link
Contributor

Stats from current PR

Click to expand stats
zeit/next.js canary huv1k/next.js api-extension Change
Build Duration 16s 15.3s -740ms
node_modules Size 40.2 MB 40.2 MB ⚠️ +24.6 kB
Total Bundle (main, webpack, commons) Size 209 kB 209 kB
Total Bundle (main, webpack, commons) gzip Size 68.4 kB 68.4 kB
Client _app Size 2.54 kB 2.54 kB
Client _app gzip Size 1.05 kB 1.05 kB
Client _error Size 8.19 kB 8.19 kB
Client _error gzip Size 3.12 kB 3.12 kB
Client pages/index Size 288 B 288 B
Client pages/index gzip Size 222 B 222 B
Client pages/link Size 4.83 kB 4.83 kB
Client pages/link gzip Size 2.11 kB 2.11 kB
Client pages/routerDirect Size 411 B 411 B
Client pages/routerDirect gzip Size 296 B 296 B
Client pages/withRouter Size 393 B 393 B
Client pages/withRouter gzip Size 280 B 280 B
Client main Size 23.3 kB 23.3 kB
Client main gzip Size 7.63 kB 7.63 kB
Client commons Size 183 kB 183 kB
Client commons gzip Size 59.5 kB 59.5 kB
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 769 B 769 B
Base Rendered Size 1.34 kB 1.34 kB
Build Dir Size 801 kB 801 kB
Click to expand serverless stats
zeit/next.js canary huv1k/next.js api-extension Change
Build Duration 16.8s 16.5s -262ms
node_modules Size 40.2 MB 40.2 MB ⚠️ +24.6 kB
Total Bundle (main, webpack, commons) Size 209 kB 209 kB
Total Bundle (main, webpack, commons) gzip Size 68.4 kB 68.4 kB
Client _app Size 2.54 kB 2.54 kB
Client _app gzip Size 1.05 kB 1.05 kB
Client _error Size 8.19 kB 8.19 kB
Client _error gzip Size 3.12 kB 3.12 kB
Client pages/index Size 288 B 288 B
Client pages/index gzip Size 222 B 222 B
Client pages/link Size 4.83 kB 4.83 kB
Client pages/link gzip Size 2.11 kB 2.11 kB
Client pages/routerDirect Size 411 B 411 B
Client pages/routerDirect gzip Size 296 B 296 B
Client pages/withRouter Size 393 B 393 B
Client pages/withRouter gzip Size 280 B 280 B
Client main Size 23.3 kB 23.3 kB
Client main gzip Size 7.63 kB 7.63 kB
Client commons Size 183 kB 183 kB
Client commons gzip Size 59.5 kB 59.5 kB
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 769 B 769 B
Serverless pages/link Size 343 kB 343 kB ⚠️ +3 B
Serverless pages/link gzip Size 88.9 kB 88.9 kB ⚠️ +1 B
Serverless pages/index Size 333 kB 333 kB ⚠️ +3 B
Serverless pages/index gzip Size 86.4 kB 86.4 kB ⚠️ +2 B
Serverless pages/_error Size 334 kB 334 kB ⚠️ +3 B
Serverless pages/_error gzip Size 86.2 kB 86.2 kB ⚠️ +2 B
Serverless pages/routerDirect Size 334 kB 334 kB ⚠️ +3 B
Serverless pages/routerDirect gzip Size 86.5 kB 86.5 kB ⚠️ +2 B
Serverless pages/withRouter Size 334 kB 334 kB ⚠️ +3 B
Serverless pages/withRouter gzip Size 86.6 kB 86.6 kB ⚠️ +1 B
Build Dir Size 2.37 MB 2.37 MB ⚠️ +15 B

@BentoumiTech
Copy link

I think it's better to allow each project to extend/override the req and res interface, as a lot of property depends on which custom server and middleware each project use.

@github-actions
Copy link
Contributor

Stats from current PR

Click to expand stats
zeit/next.js canary huv1k/next.js api-extension Change
Build Duration 15s 16.8s ⚠️ +1.8s
node_modules Size 44.8 MB 40.6 MB -4.19 MB
Total Bundle (main, webpack, commons) Size 209 kB 209 kB ⚠️ +19 B
Total Bundle (main, webpack, commons) gzip Size 68.5 kB 68.4 kB -138 B
Client _app Size 2.92 kB 2.54 kB -386 B
Client _app gzip Size 1.2 kB 1.05 kB -156 B
Client _error Size 8.23 kB 8.19 kB -43 B
Client _error gzip Size 3.13 kB 3.11 kB -12 B
Client pages/index Size 288 B 288 B
Client pages/index gzip Size 222 B 222 B
Client pages/link Size 4.76 kB 4.83 kB ⚠️ +72 B
Client pages/link gzip Size 2.06 kB 2.11 kB ⚠️ +53 B
Client pages/routerDirect Size 411 B 411 B
Client pages/routerDirect gzip Size 296 B 296 B
Client pages/withRouter Size 393 B 393 B
Client pages/withRouter gzip Size 280 B 280 B
Client main Size 23.3 kB 23.3 kB -82 B
Client main gzip Size 7.74 kB 7.63 kB -109 B
Client commons Size 182 kB 183 kB ⚠️ +487 B
Client commons gzip Size 59.4 kB 59.5 kB ⚠️ +127 B
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 769 B 769 B
Base Rendered Size 1.34 kB 1.34 kB
Build Dir Size 804 kB 801 kB -2.36 kB
Click to expand serverless stats
zeit/next.js canary huv1k/next.js api-extension Change
Build Duration 17.8s 18.6s ⚠️ +799ms
node_modules Size 44.8 MB 40.6 MB -4.19 MB
Total Bundle (main, webpack, commons) Size 209 kB 209 kB ⚠️ +19 B
Total Bundle (main, webpack, commons) gzip Size 68.5 kB 68.4 kB -138 B
Client _app Size 2.92 kB 2.54 kB -386 B
Client _app gzip Size 1.2 kB 1.05 kB -156 B
Client _error Size 8.23 kB 8.19 kB -43 B
Client _error gzip Size 3.13 kB 3.11 kB -12 B
Client pages/index Size 288 B 288 B
Client pages/index gzip Size 222 B 222 B
Client pages/link Size 4.76 kB 4.83 kB ⚠️ +72 B
Client pages/link gzip Size 2.06 kB 2.11 kB ⚠️ +53 B
Client pages/routerDirect Size 411 B 411 B
Client pages/routerDirect gzip Size 296 B 296 B
Client pages/withRouter Size 393 B 393 B
Client pages/withRouter gzip Size 280 B 280 B
Client main Size 23.3 kB 23.3 kB -82 B
Client main gzip Size 7.74 kB 7.63 kB -109 B
Client commons Size 182 kB 183 kB ⚠️ +487 B
Client commons gzip Size 59.4 kB 59.5 kB ⚠️ +127 B
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 769 B 769 B
Serverless pages/link Size 349 kB 343 kB -6.48 kB
Serverless pages/link gzip Size 90.3 kB 88.9 kB -1.42 kB
Serverless pages/index Size 340 kB 333 kB -6.64 kB
Serverless pages/index gzip Size 87.9 kB 86.4 kB -1.47 kB
Serverless pages/_error Size 340 kB 334 kB -5.78 kB
Serverless pages/_error gzip Size 87.7 kB 86.2 kB -1.45 kB
Serverless pages/routerDirect Size 341 kB 334 kB -6.71 kB
Serverless pages/routerDirect gzip Size 88 kB 86.5 kB -1.49 kB
Serverless pages/withRouter Size 341 kB 334 kB -6.69 kB
Serverless pages/withRouter gzip Size 88 kB 86.6 kB -1.47 kB
Build Dir Size 2.41 MB 2.37 MB -41 kB

@github-actions
Copy link
Contributor

Stats from current PR

Click to expand stats
zeit/next.js canary huv1k/next.js api-extension Change
Build Duration 16.6s 16s -625ms
node_modules Size 44.8 MB 40.6 MB -4.19 MB
Total Bundle (main, webpack, commons) Size 209 kB 209 kB ⚠️ +19 B
Total Bundle (main, webpack, commons) gzip Size 68.5 kB 68.4 kB -137 B
Client _app Size 2.92 kB 2.54 kB -386 B
Client _app gzip Size 1.2 kB 1.05 kB -156 B
Client _error Size 8.23 kB 8.19 kB -43 B
Client _error gzip Size 3.13 kB 3.12 kB -11 B
Client pages/index Size 288 B 288 B
Client pages/index gzip Size 222 B 222 B
Client pages/link Size 4.76 kB 4.83 kB ⚠️ +72 B
Client pages/link gzip Size 2.06 kB 2.11 kB ⚠️ +53 B
Client pages/routerDirect Size 411 B 411 B
Client pages/routerDirect gzip Size 296 B 296 B
Client pages/withRouter Size 393 B 393 B
Client pages/withRouter gzip Size 280 B 280 B
Client main Size 23.3 kB 23.3 kB -82 B
Client main gzip Size 7.74 kB 7.63 kB -108 B
Client commons Size 182 kB 183 kB ⚠️ +487 B
Client commons gzip Size 59.4 kB 59.5 kB ⚠️ +127 B
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 769 B 769 B
Base Rendered Size 1.34 kB 1.34 kB
Build Dir Size 804 kB 801 kB -2.36 kB
Click to expand serverless stats
zeit/next.js canary huv1k/next.js api-extension Change
Build Duration 17.4s 17.1s -286ms
node_modules Size 44.8 MB 40.6 MB -4.19 MB
Total Bundle (main, webpack, commons) Size 209 kB 209 kB ⚠️ +19 B
Total Bundle (main, webpack, commons) gzip Size 68.5 kB 68.4 kB -137 B
Client _app Size 2.92 kB 2.54 kB -386 B
Client _app gzip Size 1.2 kB 1.05 kB -156 B
Client _error Size 8.23 kB 8.19 kB -43 B
Client _error gzip Size 3.13 kB 3.12 kB -11 B
Client pages/index Size 288 B 288 B
Client pages/index gzip Size 222 B 222 B
Client pages/link Size 4.76 kB 4.83 kB ⚠️ +72 B
Client pages/link gzip Size 2.06 kB 2.11 kB ⚠️ +53 B
Client pages/routerDirect Size 411 B 411 B
Client pages/routerDirect gzip Size 296 B 296 B
Client pages/withRouter Size 393 B 393 B
Client pages/withRouter gzip Size 280 B 280 B
Client main Size 23.3 kB 23.3 kB -82 B
Client main gzip Size 7.74 kB 7.63 kB -108 B
Client commons Size 182 kB 183 kB ⚠️ +487 B
Client commons gzip Size 59.4 kB 59.5 kB ⚠️ +127 B
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 769 B 769 B
Serverless pages/link Size 349 kB 343 kB -6.48 kB
Serverless pages/link gzip Size 90.3 kB 88.9 kB -1.42 kB
Serverless pages/index Size 340 kB 333 kB -6.64 kB
Serverless pages/index gzip Size 87.9 kB 86.4 kB -1.47 kB
Serverless pages/_error Size 340 kB 334 kB -5.78 kB
Serverless pages/_error gzip Size 87.7 kB 86.2 kB -1.45 kB
Serverless pages/routerDirect Size 341 kB 334 kB -6.71 kB
Serverless pages/routerDirect gzip Size 88 kB 86.5 kB -1.49 kB
Serverless pages/withRouter Size 341 kB 334 kB -6.69 kB
Serverless pages/withRouter gzip Size 88 kB 86.6 kB -1.46 kB
Build Dir Size 2.41 MB 2.37 MB -41 kB

@Janpot
Copy link
Contributor

Janpot commented May 24, 2019

@huv1k (cc @timneutkens ) Would like to voice my concerns again, as they seem to have gone by unnoticed. I think parsing the request body as out-of-the-box behavior is problematic.

  1. It forces all request handlers to wait with doing anything else until the full body is received. It makes it impossible to do work concurrently while waiting for the body to come in.
  2. It forces all request bodies to be read into memory, even if I intend to only proxy it
  3. It makes it hard or even impossible in some cases to process the body as a stream.

I'd like to propose a few alternatives:

  1. provide body parsing through an async interface:
const body = await req.json();
  1. provide an opt-in to all non-standard behavior through a wrapper:
import { handler } from 'next/api'
export default handler((req, res) => {
  res.json(req.body);
});

Which could even be as much as bundling micro with next.

  1. 🙂use an interface like this experiment I've been working on.

@github-actions
Copy link
Contributor

Stats from current PR

Click to expand stats
zeit/next.js canary huv1k/next.js api-extension Change
Build Duration 15.9s 15.6s -330ms
node_modules Size 44.8 MB 40.6 MB -4.2 MB
Total Bundle (main, webpack, commons) Size 209 kB 209 kB -50 B
Total Bundle (main, webpack, commons) gzip Size 68.6 kB 68.4 kB -155 B
Client _app Size 2.92 kB 2.54 kB -386 B
Client _app gzip Size 1.2 kB 1.05 kB -156 B
Client _error Size 8.23 kB 8.19 kB -43 B
Client _error gzip Size 3.13 kB 3.12 kB -11 B
Client pages/index Size 288 B 288 B
Client pages/index gzip Size 222 B 222 B
Client pages/link Size 4.76 kB 4.83 kB ⚠️ +72 B
Client pages/link gzip Size 2.06 kB 2.11 kB ⚠️ +53 B
Client pages/routerDirect Size 411 B 411 B
Client pages/routerDirect gzip Size 296 B 296 B
Client pages/withRouter Size 393 B 393 B
Client pages/withRouter gzip Size 280 B 280 B
Client main Size 23.3 kB 23.3 kB -82 B
Client main gzip Size 7.74 kB 7.63 kB -108 B
Client commons Size 183 kB 183 kB ⚠️ +418 B
Client commons gzip Size 59.4 kB 59.5 kB ⚠️ +109 B
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 769 B 769 B
Base Rendered Size 1.34 kB 1.34 kB
Build Dir Size 805 kB 801 kB -4.03 kB
Click to expand serverless stats
zeit/next.js canary huv1k/next.js api-extension Change
Build Duration 16.8s 16.6s -178ms
node_modules Size 44.8 MB 40.6 MB -4.2 MB
Total Bundle (main, webpack, commons) Size 209 kB 209 kB -50 B
Total Bundle (main, webpack, commons) gzip Size 68.6 kB 68.4 kB -156 B
Client _app Size 2.92 kB 2.54 kB -386 B
Client _app gzip Size 1.2 kB 1.05 kB -156 B
Client _error Size 8.23 kB 8.19 kB -43 B
Client _error gzip Size 3.13 kB 3.11 kB -12 B
Client pages/index Size 288 B 288 B
Client pages/index gzip Size 222 B 222 B
Client pages/link Size 4.76 kB 4.83 kB ⚠️ +72 B
Client pages/link gzip Size 2.06 kB 2.11 kB ⚠️ +53 B
Client pages/routerDirect Size 411 B 411 B
Client pages/routerDirect gzip Size 296 B 296 B
Client pages/withRouter Size 393 B 393 B
Client pages/withRouter gzip Size 280 B 280 B
Client main Size 23.3 kB 23.3 kB -82 B
Client main gzip Size 7.74 kB 7.63 kB -109 B
Client commons Size 183 kB 183 kB ⚠️ +418 B
Client commons gzip Size 59.4 kB 59.5 kB ⚠️ +109 B
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 769 B 769 B
Serverless pages/link Size 350 kB 343 kB -7.44 kB
Serverless pages/link gzip Size 90.6 kB 88.9 kB -1.69 kB
Serverless pages/index Size 341 kB 333 kB -7.6 kB
Serverless pages/index gzip Size 88.2 kB 86.4 kB -1.74 kB
Serverless pages/_error Size 341 kB 334 kB -6.74 kB
Serverless pages/_error gzip Size 87.9 kB 86.2 kB -1.72 kB
Serverless pages/routerDirect Size 342 kB 334 kB -7.67 kB
Serverless pages/routerDirect gzip Size 88.2 kB 86.5 kB -1.76 kB
Serverless pages/withRouter Size 342 kB 334 kB -7.65 kB
Serverless pages/withRouter gzip Size 88.3 kB 86.6 kB -1.73 kB
Build Dir Size 2.42 MB 2.37 MB -47 kB

@github-actions
Copy link
Contributor

Stats from current PR

Click to expand stats
zeit/next.js canary huv1k/next.js api-extension Change
Build Duration 14.8s 14.9s ⚠️ +71ms
node_modules Size 44.8 MB 45.3 MB ⚠️ +484 kB
Total Bundle (main, webpack, commons) Size 209 kB 209 kB
Total Bundle (main, webpack, commons) gzip Size 68.6 kB 68.6 kB
Client _app Size 2.92 kB 2.92 kB
Client _app gzip Size 1.2 kB 1.2 kB
Client _error Size 8.23 kB 8.23 kB
Client _error gzip Size 3.13 kB 3.13 kB
Client pages/index Size 288 B 288 B
Client pages/index gzip Size 222 B 222 B
Client pages/link Size 4.76 kB 4.76 kB
Client pages/link gzip Size 2.06 kB 2.06 kB
Client pages/routerDirect Size 411 B 411 B
Client pages/routerDirect gzip Size 296 B 296 B
Client pages/withRouter Size 393 B 393 B
Client pages/withRouter gzip Size 280 B 280 B
Client main Size 23.3 kB 23.3 kB
Client main gzip Size 7.74 kB 7.74 kB
Client commons Size 183 kB 183 kB
Client commons gzip Size 59.4 kB 59.4 kB
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 769 B 769 B
Base Rendered Size 1.34 kB 1.34 kB
Build Dir Size 805 kB 805 kB
Click to expand serverless stats
zeit/next.js canary huv1k/next.js api-extension Change
Build Duration 16.3s 16.3s -14ms
node_modules Size 44.8 MB 45.3 MB ⚠️ +484 kB
Total Bundle (main, webpack, commons) Size 209 kB 209 kB
Total Bundle (main, webpack, commons) gzip Size 68.6 kB 68.6 kB
Client _app Size 2.92 kB 2.92 kB
Client _app gzip Size 1.2 kB 1.2 kB
Client _error Size 8.23 kB 8.23 kB
Client _error gzip Size 3.13 kB 3.13 kB
Client pages/index Size 288 B 288 B
Client pages/index gzip Size 222 B 222 B
Client pages/link Size 4.76 kB 4.76 kB
Client pages/link gzip Size 2.06 kB 2.06 kB
Client pages/routerDirect Size 411 B 411 B
Client pages/routerDirect gzip Size 296 B 296 B
Client pages/withRouter Size 393 B 393 B
Client pages/withRouter gzip Size 280 B 280 B
Client main Size 23.3 kB 23.3 kB
Client main gzip Size 7.74 kB 7.74 kB
Client commons Size 183 kB 183 kB
Client commons gzip Size 59.4 kB 59.4 kB
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 769 B 769 B
Serverless pages/link Size 350 kB 350 kB
Serverless pages/link gzip Size 90.6 kB 90.6 kB
Serverless pages/index Size 341 kB 341 kB
Serverless pages/index gzip Size 88.2 kB 88.2 kB ⚠️ +1 B
Serverless pages/_error Size 341 kB 341 kB
Serverless pages/_error gzip Size 87.9 kB 87.9 kB ⚠️ +1 B
Serverless pages/routerDirect Size 342 kB 342 kB
Serverless pages/routerDirect gzip Size 88.3 kB 88.3 kB
Serverless pages/withRouter Size 342 kB 342 kB
Serverless pages/withRouter gzip Size 88.3 kB 88.3 kB ⚠️ +1 B
Build Dir Size 2.42 MB 2.42 MB

@huv1k huv1k changed the title [WIP] API interface extensions API interface extensions May 24, 2019
@timneutkens
Copy link
Member

We're going to provide a way to opt-out soon.

@github-actions
Copy link
Contributor

Stats from current PR

Click to expand stats
zeit/next.js canary huv1k/next.js api-extension Change
Build Duration 15.4s 15.6s ⚠️ +232ms
node_modules Size 40.9 MB 41.3 MB ⚠️ +485 kB
Total Bundle (main, webpack, commons) Size 209 kB 209 kB
Total Bundle (main, webpack, commons) gzip Size 68.6 kB 68.6 kB
Client _app Size 2.92 kB 2.92 kB
Client _app gzip Size 1.2 kB 1.2 kB
Client _error Size 8.23 kB 8.23 kB
Client _error gzip Size 3.13 kB 3.13 kB
Client pages/index Size 288 B 288 B
Client pages/index gzip Size 222 B 222 B
Client pages/link Size 4.76 kB 4.76 kB
Client pages/link gzip Size 2.06 kB 2.06 kB
Client pages/routerDirect Size 411 B 411 B
Client pages/routerDirect gzip Size 296 B 296 B
Client pages/withRouter Size 393 B 393 B
Client pages/withRouter gzip Size 280 B 280 B
Client main Size 23.3 kB 23.3 kB
Client main gzip Size 7.74 kB 7.74 kB
Client commons Size 183 kB 183 kB
Client commons gzip Size 59.4 kB 59.4 kB
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 769 B 769 B
Base Rendered Size 1.34 kB 1.34 kB
Build Dir Size 808 kB 808 kB
Click to expand serverless stats
zeit/next.js canary huv1k/next.js api-extension Change
Build Duration 17s 17.1s ⚠️ +116ms
node_modules Size 40.9 MB 41.3 MB ⚠️ +485 kB
Total Bundle (main, webpack, commons) Size 209 kB 209 kB
Total Bundle (main, webpack, commons) gzip Size 68.6 kB 68.6 kB
Client _app Size 2.92 kB 2.92 kB
Client _app gzip Size 1.2 kB 1.2 kB
Client _error Size 8.23 kB 8.23 kB
Client _error gzip Size 3.13 kB 3.13 kB
Client pages/index Size 288 B 288 B
Client pages/index gzip Size 222 B 222 B
Client pages/link Size 4.76 kB 4.76 kB
Client pages/link gzip Size 2.06 kB 2.06 kB
Client pages/routerDirect Size 411 B 411 B
Client pages/routerDirect gzip Size 296 B 296 B
Client pages/withRouter Size 393 B 393 B
Client pages/withRouter gzip Size 280 B 280 B
Client main Size 23.3 kB 23.3 kB
Client main gzip Size 7.74 kB 7.74 kB
Client commons Size 183 kB 183 kB
Client commons gzip Size 59.4 kB 59.4 kB
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 769 B 769 B
Serverless pages/link Size 351 kB 351 kB
Serverless pages/link gzip Size 90.9 kB 90.9 kB -1 B
Serverless pages/index Size 342 kB 342 kB
Serverless pages/index gzip Size 88.5 kB 88.5 kB -1 B
Serverless pages/_error Size 342 kB 342 kB
Serverless pages/_error gzip Size 88.2 kB 88.2 kB -1 B
Serverless pages/routerDirect Size 343 kB 343 kB
Serverless pages/routerDirect gzip Size 88.5 kB 88.5 kB -1 B
Serverless pages/withRouter Size 343 kB 343 kB
Serverless pages/withRouter gzip Size 88.6 kB 88.6 kB -1 B
Build Dir Size 2.42 MB 2.42 MB

@github-actions
Copy link
Contributor

Stats from current PR

Click to expand stats
zeit/next.js canary huv1k/next.js api-extension Change
Build Duration 13.8s 13.8s ⚠️ +2ms
node_modules Size 40.9 MB 41.3 MB ⚠️ +485 kB
Total Bundle (main, webpack, commons) Size 209 kB 209 kB
Total Bundle (main, webpack, commons) gzip Size 68.6 kB 68.6 kB
Client _app Size 2.92 kB 2.92 kB
Client _app gzip Size 1.2 kB 1.2 kB
Client _error Size 8.23 kB 8.23 kB
Client _error gzip Size 3.13 kB 3.13 kB
Client pages/index Size 288 B 288 B
Client pages/index gzip Size 222 B 222 B
Client pages/link Size 4.76 kB 4.76 kB
Client pages/link gzip Size 2.06 kB 2.06 kB
Client pages/routerDirect Size 411 B 411 B
Client pages/routerDirect gzip Size 296 B 296 B
Client pages/withRouter Size 393 B 393 B
Client pages/withRouter gzip Size 280 B 280 B
Client main Size 23.3 kB 23.3 kB
Client main gzip Size 7.74 kB 7.74 kB
Client commons Size 183 kB 183 kB
Client commons gzip Size 59.4 kB 59.4 kB
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 769 B 769 B
Base Rendered Size 1.34 kB 1.34 kB
Build Dir Size 808 kB 808 kB
Click to expand serverless stats
zeit/next.js canary huv1k/next.js api-extension Change
Build Duration 15.2s 15.5s ⚠️ +351ms
node_modules Size 40.9 MB 41.3 MB ⚠️ +485 kB
Total Bundle (main, webpack, commons) Size 209 kB 209 kB
Total Bundle (main, webpack, commons) gzip Size 68.6 kB 68.6 kB
Client _app Size 2.92 kB 2.92 kB
Client _app gzip Size 1.2 kB 1.2 kB
Client _error Size 8.23 kB 8.23 kB
Client _error gzip Size 3.13 kB 3.13 kB
Client pages/index Size 288 B 288 B
Client pages/index gzip Size 222 B 222 B
Client pages/link Size 4.76 kB 4.76 kB
Client pages/link gzip Size 2.06 kB 2.06 kB
Client pages/routerDirect Size 411 B 411 B
Client pages/routerDirect gzip Size 296 B 296 B
Client pages/withRouter Size 393 B 393 B
Client pages/withRouter gzip Size 280 B 280 B
Client main Size 23.3 kB 23.3 kB
Client main gzip Size 7.74 kB 7.74 kB
Client commons Size 183 kB 183 kB
Client commons gzip Size 59.4 kB 59.4 kB
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 769 B 769 B
Serverless pages/link Size 351 kB 351 kB
Serverless pages/link gzip Size 90.9 kB 90.9 kB -1 B
Serverless pages/index Size 342 kB 342 kB
Serverless pages/index gzip Size 88.5 kB 88.5 kB -1 B
Serverless pages/_error Size 342 kB 342 kB
Serverless pages/_error gzip Size 88.2 kB 88.2 kB -1 B
Serverless pages/routerDirect Size 343 kB 343 kB
Serverless pages/routerDirect gzip Size 88.5 kB 88.5 kB -1 B
Serverless pages/withRouter Size 343 kB 343 kB
Serverless pages/withRouter gzip Size 88.6 kB 88.6 kB -1 B
Build Dir Size 2.42 MB 2.42 MB

@github-actions
Copy link
Contributor

Stats from current PR

Click to expand stats
zeit/next.js canary huv1k/next.js api-extension Change
Build Duration 14.3s 14.1s -190ms
node_modules Size 41 MB 41.5 MB ⚠️ +494 kB
Total Bundle (main, webpack, commons) Size 210 kB 210 kB
Total Bundle (main, webpack, commons) gzip Size 68.9 kB 68.9 kB
Client _app Size 2.92 kB 2.92 kB
Client _app gzip Size 1.2 kB 1.2 kB
Client _error Size 8.25 kB 8.25 kB
Client _error gzip Size 3.13 kB 3.13 kB
Client pages/index Size 288 B 288 B
Client pages/index gzip Size 222 B 222 B
Client pages/link Size 4.76 kB 4.76 kB
Client pages/link gzip Size 2.06 kB 2.06 kB
Client pages/routerDirect Size 411 B 411 B
Client pages/routerDirect gzip Size 296 B 296 B
Client pages/withRouter Size 393 B 393 B
Client pages/withRouter gzip Size 280 B 280 B
Client main Size 23.3 kB 23.3 kB
Client main gzip Size 7.74 kB 7.74 kB
Client commons Size 184 kB 184 kB
Client commons gzip Size 59.8 kB 59.8 kB
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 769 B 769 B
Base Rendered Size 1.34 kB 1.34 kB
Build Dir Size 813 kB 813 kB
Click to expand serverless stats
zeit/next.js canary huv1k/next.js api-extension Change
Build Duration 15.5s 15.4s -116ms
node_modules Size 41 MB 41.5 MB ⚠️ +494 kB
Total Bundle (main, webpack, commons) Size 210 kB 210 kB
Total Bundle (main, webpack, commons) gzip Size 68.9 kB 68.9 kB
Client _app Size 2.92 kB 2.92 kB
Client _app gzip Size 1.2 kB 1.2 kB
Client _error Size 8.25 kB 8.25 kB
Client _error gzip Size 3.13 kB 3.13 kB
Client pages/index Size 288 B 288 B
Client pages/index gzip Size 222 B 222 B
Client pages/link Size 4.76 kB 4.76 kB
Client pages/link gzip Size 2.06 kB 2.06 kB
Client pages/routerDirect Size 411 B 411 B
Client pages/routerDirect gzip Size 296 B 296 B
Client pages/withRouter Size 393 B 393 B
Client pages/withRouter gzip Size 280 B 280 B
Client main Size 23.3 kB 23.3 kB
Client main gzip Size 7.74 kB 7.74 kB
Client commons Size 184 kB 184 kB
Client commons gzip Size 59.8 kB 59.8 kB
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 769 B 769 B
Serverless pages/link Size 354 kB 354 kB
Serverless pages/link gzip Size 91.6 kB 91.6 kB ⚠️ +1 B
Serverless pages/index Size 345 kB 345 kB
Serverless pages/index gzip Size 89.3 kB 89.3 kB
Serverless pages/_error Size 344 kB 344 kB
Serverless pages/_error gzip Size 89 kB 89 kB ⚠️ +1 B
Serverless pages/routerDirect Size 345 kB 345 kB
Serverless pages/routerDirect gzip Size 89.2 kB 89.2 kB
Serverless pages/withRouter Size 345 kB 345 kB
Serverless pages/withRouter gzip Size 89.2 kB 89.2 kB
Build Dir Size 2.44 MB 2.44 MB

@github-actions
Copy link
Contributor

Stats from current PR

Click to expand stats
zeit/next.js canary huv1k/next.js api-extension Change
Build Duration 14.8s 14.5s -253ms
node_modules Size 41 MB 41.5 MB ⚠️ +494 kB
Total Bundle (main, webpack, commons) Size 210 kB 210 kB
Total Bundle (main, webpack, commons) gzip Size 68.9 kB 68.9 kB
Client _app Size 2.92 kB 2.92 kB
Client _app gzip Size 1.2 kB 1.2 kB
Client _error Size 8.25 kB 8.25 kB
Client _error gzip Size 3.13 kB 3.13 kB
Client pages/index Size 288 B 288 B
Client pages/index gzip Size 222 B 222 B
Client pages/link Size 4.76 kB 4.76 kB
Client pages/link gzip Size 2.06 kB 2.06 kB
Client pages/routerDirect Size 411 B 411 B
Client pages/routerDirect gzip Size 296 B 296 B
Client pages/withRouter Size 393 B 393 B
Client pages/withRouter gzip Size 280 B 280 B
Client main Size 23.3 kB 23.3 kB
Client main gzip Size 7.74 kB 7.74 kB
Client commons Size 184 kB 184 kB
Client commons gzip Size 59.8 kB 59.8 kB
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 769 B 769 B
Base Rendered Size 1.34 kB 1.34 kB
Build Dir Size 813 kB 813 kB
Click to expand serverless stats
zeit/next.js canary huv1k/next.js api-extension Change
Build Duration 15.6s 15.6s ⚠️ +63ms
node_modules Size 41 MB 41.5 MB ⚠️ +494 kB
Total Bundle (main, webpack, commons) Size 210 kB 210 kB
Total Bundle (main, webpack, commons) gzip Size 68.9 kB 68.9 kB
Client _app Size 2.92 kB 2.92 kB
Client _app gzip Size 1.2 kB 1.2 kB
Client _error Size 8.25 kB 8.25 kB
Client _error gzip Size 3.13 kB 3.13 kB
Client pages/index Size 288 B 288 B
Client pages/index gzip Size 222 B 222 B
Client pages/link Size 4.76 kB 4.76 kB
Client pages/link gzip Size 2.06 kB 2.06 kB
Client pages/routerDirect Size 411 B 411 B
Client pages/routerDirect gzip Size 296 B 296 B
Client pages/withRouter Size 393 B 393 B
Client pages/withRouter gzip Size 280 B 280 B
Client main Size 23.3 kB 23.3 kB
Client main gzip Size 7.74 kB 7.74 kB
Client commons Size 184 kB 184 kB
Client commons gzip Size 59.8 kB 59.8 kB
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 769 B 769 B
Serverless pages/link Size 354 kB 354 kB
Serverless pages/link gzip Size 91.6 kB 91.6 kB
Serverless pages/index Size 345 kB 345 kB
Serverless pages/index gzip Size 89.3 kB 89.3 kB
Serverless pages/_error Size 344 kB 344 kB
Serverless pages/_error gzip Size 89 kB 89 kB
Serverless pages/routerDirect Size 345 kB 345 kB
Serverless pages/routerDirect gzip Size 89.2 kB 89.2 kB -2 B
Serverless pages/withRouter Size 345 kB 345 kB
Serverless pages/withRouter gzip Size 89.2 kB 89.2 kB
Build Dir Size 2.44 MB 2.44 MB

Co-Authored-By: Jan Potoms <potoms.jan@gmail.com>
@github-actions
Copy link
Contributor

Stats from current PR

Click to expand stats
zeit/next.js canary huv1k/next.js api-extension Change
Build Duration 16.8s 16.5s -286ms
node_modules Size 41 MB 41.5 MB ⚠️ +494 kB
Total Bundle (main, webpack, commons) Size 210 kB 210 kB
Total Bundle (main, webpack, commons) gzip Size 68.9 kB 68.9 kB
Client _app Size 2.92 kB 2.92 kB
Client _app gzip Size 1.2 kB 1.2 kB
Client _error Size 8.25 kB 8.25 kB
Client _error gzip Size 3.13 kB 3.13 kB
Client pages/index Size 288 B 288 B
Client pages/index gzip Size 222 B 222 B
Client pages/link Size 4.76 kB 4.76 kB
Client pages/link gzip Size 2.06 kB 2.06 kB
Client pages/routerDirect Size 411 B 411 B
Client pages/routerDirect gzip Size 296 B 296 B
Client pages/withRouter Size 393 B 393 B
Client pages/withRouter gzip Size 280 B 280 B
Client main Size 23.3 kB 23.3 kB
Client main gzip Size 7.74 kB 7.74 kB
Client commons Size 184 kB 184 kB
Client commons gzip Size 59.8 kB 59.8 kB
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 769 B 769 B
Base Rendered Size 1.34 kB 1.34 kB
Build Dir Size 813 kB 813 kB
Click to expand serverless stats
zeit/next.js canary huv1k/next.js api-extension Change
Build Duration 17.5s 17.6s ⚠️ +100ms
node_modules Size 41 MB 41.5 MB ⚠️ +494 kB
Total Bundle (main, webpack, commons) Size 210 kB 210 kB
Total Bundle (main, webpack, commons) gzip Size 68.9 kB 68.9 kB
Client _app Size 2.92 kB 2.92 kB
Client _app gzip Size 1.2 kB 1.2 kB
Client _error Size 8.25 kB 8.25 kB
Client _error gzip Size 3.13 kB 3.13 kB
Client pages/index Size 288 B 288 B
Client pages/index gzip Size 222 B 222 B
Client pages/link Size 4.76 kB 4.76 kB
Client pages/link gzip Size 2.06 kB 2.06 kB
Client pages/routerDirect Size 411 B 411 B
Client pages/routerDirect gzip Size 296 B 296 B
Client pages/withRouter Size 393 B 393 B
Client pages/withRouter gzip Size 280 B 280 B
Client main Size 23.3 kB 23.3 kB
Client main gzip Size 7.74 kB 7.74 kB
Client commons Size 184 kB 184 kB
Client commons gzip Size 59.8 kB 59.8 kB
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 769 B 769 B
Serverless pages/link Size 354 kB 354 kB
Serverless pages/link gzip Size 91.6 kB 91.6 kB ⚠️ +2 B
Serverless pages/index Size 345 kB 345 kB
Serverless pages/index gzip Size 89.3 kB 89.3 kB ⚠️ +2 B
Serverless pages/_error Size 344 kB 344 kB
Serverless pages/_error gzip Size 89 kB 89 kB ⚠️ +2 B
Serverless pages/routerDirect Size 345 kB 345 kB
Serverless pages/routerDirect gzip Size 89.2 kB 89.2 kB ⚠️ +1 B
Serverless pages/withRouter Size 345 kB 345 kB
Serverless pages/withRouter gzip Size 89.2 kB 89.2 kB ⚠️ +1 B
Build Dir Size 2.44 MB 2.44 MB

@github-actions
Copy link
Contributor

Stats from current PR

Click to expand stats
zeit/next.js canary huv1k/next.js api-extension Change
Build Duration 14.8s 15s ⚠️ +201ms
node_modules Size 41 MB 41.5 MB ⚠️ +494 kB
Total Bundle (main, webpack, commons) Size 210 kB 210 kB
Total Bundle (main, webpack, commons) gzip Size 68.9 kB 68.9 kB
Client _app Size 2.92 kB 2.92 kB
Client _app gzip Size 1.2 kB 1.2 kB
Client _error Size 8.25 kB 8.25 kB
Client _error gzip Size 3.13 kB 3.13 kB
Client pages/index Size 288 B 288 B
Client pages/index gzip Size 222 B 222 B
Client pages/link Size 4.76 kB 4.76 kB
Client pages/link gzip Size 2.06 kB 2.06 kB
Client pages/routerDirect Size 411 B 411 B
Client pages/routerDirect gzip Size 296 B 296 B
Client pages/withRouter Size 393 B 393 B
Client pages/withRouter gzip Size 280 B 280 B
Client main Size 23.3 kB 23.3 kB
Client main gzip Size 7.74 kB 7.74 kB
Client commons Size 184 kB 184 kB
Client commons gzip Size 59.8 kB 59.8 kB
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 769 B 769 B
Base Rendered Size 1.34 kB 1.34 kB
Build Dir Size 813 kB 813 kB
Click to expand serverless stats
zeit/next.js canary huv1k/next.js api-extension Change
Build Duration 16.8s 17s ⚠️ +246ms
node_modules Size 41 MB 41.5 MB ⚠️ +494 kB
Total Bundle (main, webpack, commons) Size 210 kB 210 kB
Total Bundle (main, webpack, commons) gzip Size 68.9 kB 68.9 kB
Client _app Size 2.92 kB 2.92 kB
Client _app gzip Size 1.2 kB 1.2 kB
Client _error Size 8.25 kB 8.25 kB
Client _error gzip Size 3.13 kB 3.13 kB
Client pages/index Size 288 B 288 B
Client pages/index gzip Size 222 B 222 B
Client pages/link Size 4.76 kB 4.76 kB
Client pages/link gzip Size 2.06 kB 2.06 kB
Client pages/routerDirect Size 411 B 411 B
Client pages/routerDirect gzip Size 296 B 296 B
Client pages/withRouter Size 393 B 393 B
Client pages/withRouter gzip Size 280 B 280 B
Client main Size 23.3 kB 23.3 kB
Client main gzip Size 7.74 kB 7.74 kB
Client commons Size 184 kB 184 kB
Client commons gzip Size 59.8 kB 59.8 kB
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 769 B 769 B
Serverless pages/link Size 354 kB 354 kB
Serverless pages/link gzip Size 91.7 kB 91.7 kB
Serverless pages/index Size 345 kB 345 kB
Serverless pages/index gzip Size 89.3 kB 89.3 kB ⚠️ +1 B
Serverless pages/_error Size 344 kB 344 kB
Serverless pages/_error gzip Size 89 kB 89.1 kB ⚠️ +1 B
Serverless pages/routerDirect Size 345 kB 345 kB
Serverless pages/routerDirect gzip Size 89.2 kB 89.2 kB ⚠️ +1 B
Serverless pages/withRouter Size 345 kB 345 kB
Serverless pages/withRouter gzip Size 89.2 kB 89.2 kB ⚠️ +1 B
Build Dir Size 2.44 MB 2.44 MB

@github-actions
Copy link
Contributor

Stats from current PR

Click to expand stats
zeit/next.js canary huv1k/next.js api-extension Change
Build Duration 15.2s 15.3s ⚠️ +92ms
node_modules Size 41 MB 41.5 MB ⚠️ +494 kB
Total Bundle (main, webpack, commons) Size 210 kB 210 kB
Total Bundle (main, webpack, commons) gzip Size 68.9 kB 68.9 kB
Client _app Size 2.92 kB 2.92 kB
Client _app gzip Size 1.2 kB 1.2 kB
Client _error Size 8.25 kB 8.25 kB
Client _error gzip Size 3.13 kB 3.13 kB
Client pages/index Size 288 B 288 B
Client pages/index gzip Size 222 B 222 B
Client pages/link Size 4.76 kB 4.76 kB
Client pages/link gzip Size 2.06 kB 2.06 kB
Client pages/routerDirect Size 411 B 411 B
Client pages/routerDirect gzip Size 296 B 296 B
Client pages/withRouter Size 393 B 393 B
Client pages/withRouter gzip Size 280 B 280 B
Client main Size 23.3 kB 23.3 kB
Client main gzip Size 7.74 kB 7.74 kB
Client commons Size 184 kB 184 kB
Client commons gzip Size 59.8 kB 59.8 kB
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 769 B 769 B
Base Rendered Size 1.34 kB 1.34 kB
Build Dir Size 813 kB 813 kB
Click to expand serverless stats
zeit/next.js canary huv1k/next.js api-extension Change
Build Duration 16.5s 16.2s -343ms
node_modules Size 41 MB 41.5 MB ⚠️ +494 kB
Total Bundle (main, webpack, commons) Size 210 kB 210 kB
Total Bundle (main, webpack, commons) gzip Size 68.9 kB 68.9 kB
Client _app Size 2.92 kB 2.92 kB
Client _app gzip Size 1.2 kB 1.2 kB
Client _error Size 8.25 kB 8.25 kB
Client _error gzip Size 3.13 kB 3.13 kB
Client pages/index Size 288 B 288 B
Client pages/index gzip Size 222 B 222 B
Client pages/link Size 4.76 kB 4.76 kB
Client pages/link gzip Size 2.06 kB 2.06 kB
Client pages/routerDirect Size 411 B 411 B
Client pages/routerDirect gzip Size 296 B 296 B
Client pages/withRouter Size 393 B 393 B
Client pages/withRouter gzip Size 280 B 280 B
Client main Size 23.3 kB 23.3 kB
Client main gzip Size 7.74 kB 7.74 kB
Client commons Size 184 kB 184 kB
Client commons gzip Size 59.8 kB 59.8 kB
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 769 B 769 B
Serverless pages/link Size 354 kB 354 kB
Serverless pages/link gzip Size 91.7 kB 91.7 kB ⚠️ +1 B
Serverless pages/index Size 345 kB 345 kB
Serverless pages/index gzip Size 89.3 kB 89.3 kB -1 B
Serverless pages/_error Size 344 kB 344 kB
Serverless pages/_error gzip Size 89.1 kB 89 kB -1 B
Serverless pages/routerDirect Size 345 kB 345 kB
Serverless pages/routerDirect gzip Size 89.2 kB 89.2 kB -2 B
Serverless pages/withRouter Size 345 kB 345 kB
Serverless pages/withRouter gzip Size 89.2 kB 89.2 kB -1 B
Build Dir Size 2.44 MB 2.44 MB

@github-actions
Copy link
Contributor

Stats from current PR

Click to expand stats
zeit/next.js canary huv1k/next.js api-extension Change
Build Duration 15.1s 15.2s ⚠️ +129ms
node_modules Size 40.9 MB 41.4 MB ⚠️ +494 kB
Total Bundle (main, webpack, commons) Size 210 kB 210 kB
Total Bundle (main, webpack, commons) gzip Size 68.9 kB 68.9 kB
Client _app Size 2.92 kB 2.92 kB
Client _app gzip Size 1.2 kB 1.2 kB
Client _error Size 8.25 kB 8.25 kB
Client _error gzip Size 3.13 kB 3.13 kB
Client pages/index Size 288 B 288 B
Client pages/index gzip Size 222 B 222 B
Client pages/link Size 4.76 kB 4.76 kB
Client pages/link gzip Size 2.06 kB 2.06 kB
Client pages/routerDirect Size 411 B 411 B
Client pages/routerDirect gzip Size 296 B 296 B
Client pages/withRouter Size 393 B 393 B
Client pages/withRouter gzip Size 280 B 280 B
Client main Size 23.3 kB 23.3 kB
Client main gzip Size 7.74 kB 7.74 kB
Client commons Size 184 kB 184 kB
Client commons gzip Size 59.7 kB 59.7 kB
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 769 B 769 B
Base Rendered Size 1.34 kB 1.34 kB
Build Dir Size 813 kB 813 kB
Click to expand serverless stats
zeit/next.js canary huv1k/next.js api-extension Change
Build Duration 16.6s 16.1s -490ms
node_modules Size 40.9 MB 41.4 MB ⚠️ +494 kB
Total Bundle (main, webpack, commons) Size 210 kB 210 kB
Total Bundle (main, webpack, commons) gzip Size 68.9 kB 68.9 kB
Client _app Size 2.92 kB 2.92 kB
Client _app gzip Size 1.2 kB 1.2 kB
Client _error Size 8.25 kB 8.25 kB
Client _error gzip Size 3.13 kB 3.13 kB
Client pages/index Size 288 B 288 B
Client pages/index gzip Size 222 B 222 B
Client pages/link Size 4.76 kB 4.76 kB
Client pages/link gzip Size 2.06 kB 2.06 kB
Client pages/routerDirect Size 411 B 411 B
Client pages/routerDirect gzip Size 296 B 296 B
Client pages/withRouter Size 393 B 393 B
Client pages/withRouter gzip Size 280 B 280 B
Client main Size 23.3 kB 23.3 kB
Client main gzip Size 7.74 kB 7.74 kB
Client commons Size 184 kB 184 kB
Client commons gzip Size 59.7 kB 59.7 kB
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 769 B 769 B
Serverless pages/link Size 341 kB 341 kB
Serverless pages/link gzip Size 87.4 kB 87.4 kB
Serverless pages/index Size 332 kB 332 kB
Serverless pages/index gzip Size 85 kB 85 kB
Serverless pages/_error Size 332 kB 332 kB
Serverless pages/_error gzip Size 84.8 kB 84.8 kB
Serverless pages/routerDirect Size 332 kB 332 kB
Serverless pages/routerDirect gzip Size 85 kB 85 kB ⚠️ +1 B
Serverless pages/withRouter Size 332 kB 332 kB
Serverless pages/withRouter gzip Size 85 kB 85 kB
Build Dir Size 2.38 MB 2.38 MB

@github-actions
Copy link
Contributor

Stats from current PR

Click to expand stats
zeit/next.js canary huv1k/next.js api-extension Change
Build Duration 15.7s 15.5s -129ms
node_modules Size 40.9 MB 41.4 MB ⚠️ +495 kB
Total Bundle (main, webpack, commons) Size 210 kB 210 kB
Total Bundle (main, webpack, commons) gzip Size 68.9 kB 68.9 kB
Client _app Size 2.92 kB 2.92 kB
Client _app gzip Size 1.2 kB 1.2 kB
Client _error Size 8.25 kB 8.25 kB
Client _error gzip Size 3.13 kB 3.13 kB
Client pages/index Size 288 B 288 B
Client pages/index gzip Size 222 B 222 B
Client pages/link Size 4.76 kB 4.76 kB
Client pages/link gzip Size 2.06 kB 2.06 kB
Client pages/routerDirect Size 411 B 411 B
Client pages/routerDirect gzip Size 296 B 296 B
Client pages/withRouter Size 393 B 393 B
Client pages/withRouter gzip Size 280 B 280 B
Client main Size 23.3 kB 23.3 kB
Client main gzip Size 7.74 kB 7.74 kB
Client commons Size 184 kB 184 kB
Client commons gzip Size 59.7 kB 59.7 kB
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 769 B 769 B
Base Rendered Size 1.34 kB 1.34 kB
Build Dir Size 813 kB 813 kB
Click to expand serverless stats
zeit/next.js canary huv1k/next.js api-extension Change
Build Duration 17.2s 16.9s -324ms
node_modules Size 40.9 MB 41.4 MB ⚠️ +495 kB
Total Bundle (main, webpack, commons) Size 210 kB 210 kB
Total Bundle (main, webpack, commons) gzip Size 68.9 kB 68.9 kB
Client _app Size 2.92 kB 2.92 kB
Client _app gzip Size 1.2 kB 1.2 kB
Client _error Size 8.25 kB 8.25 kB
Client _error gzip Size 3.13 kB 3.13 kB
Client pages/index Size 288 B 288 B
Client pages/index gzip Size 222 B 222 B
Client pages/link Size 4.76 kB 4.76 kB
Client pages/link gzip Size 2.06 kB 2.06 kB
Client pages/routerDirect Size 411 B 411 B
Client pages/routerDirect gzip Size 296 B 296 B
Client pages/withRouter Size 393 B 393 B
Client pages/withRouter gzip Size 280 B 280 B
Client main Size 23.3 kB 23.3 kB
Client main gzip Size 7.74 kB 7.74 kB
Client commons Size 184 kB 184 kB
Client commons gzip Size 59.7 kB 59.7 kB
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 769 B 769 B
Serverless pages/link Size 341 kB 341 kB
Serverless pages/link gzip Size 87.4 kB 87.4 kB ⚠️ +1 B
Serverless pages/index Size 332 kB 332 kB
Serverless pages/index gzip Size 85 kB 85 kB
Serverless pages/_error Size 332 kB 332 kB
Serverless pages/_error gzip Size 84.8 kB 84.8 kB
Serverless pages/routerDirect Size 332 kB 332 kB
Serverless pages/routerDirect gzip Size 85 kB 85 kB -1 B
Serverless pages/withRouter Size 332 kB 332 kB
Serverless pages/withRouter gzip Size 85 kB 85 kB
Build Dir Size 2.38 MB 2.38 MB

@github-actions
Copy link
Contributor

Stats from current PR

Click to expand stats
zeit/next.js canary huv1k/next.js api-extension Change
Build Duration 14.8s 14.9s ⚠️ +127ms
node_modules Size 40.9 MB 41.4 MB ⚠️ +495 kB
Total Bundle (main, webpack, commons) Size 210 kB 210 kB
Total Bundle (main, webpack, commons) gzip Size 68.9 kB 68.9 kB
Client _app Size 2.92 kB 2.92 kB
Client _app gzip Size 1.2 kB 1.2 kB
Client _error Size 8.25 kB 8.25 kB
Client _error gzip Size 3.13 kB 3.13 kB
Client pages/index Size 288 B 288 B
Client pages/index gzip Size 222 B 222 B
Client pages/link Size 4.76 kB 4.76 kB
Client pages/link gzip Size 2.06 kB 2.06 kB
Client pages/routerDirect Size 411 B 411 B
Client pages/routerDirect gzip Size 296 B 296 B
Client pages/withRouter Size 393 B 393 B
Client pages/withRouter gzip Size 280 B 280 B
Client main Size 23.3 kB 23.3 kB
Client main gzip Size 7.74 kB 7.74 kB
Client commons Size 184 kB 184 kB
Client commons gzip Size 59.7 kB 59.7 kB
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 769 B 769 B
Base Rendered Size 1.34 kB 1.34 kB
Build Dir Size 813 kB 813 kB
Click to expand serverless stats
zeit/next.js canary huv1k/next.js api-extension Change
Build Duration 16s 15.7s -312ms
node_modules Size 40.9 MB 41.4 MB ⚠️ +495 kB
Total Bundle (main, webpack, commons) Size 210 kB 210 kB
Total Bundle (main, webpack, commons) gzip Size 68.9 kB 68.9 kB
Client _app Size 2.92 kB 2.92 kB
Client _app gzip Size 1.2 kB 1.2 kB
Client _error Size 8.25 kB 8.25 kB
Client _error gzip Size 3.13 kB 3.13 kB
Client pages/index Size 288 B 288 B
Client pages/index gzip Size 222 B 222 B
Client pages/link Size 4.76 kB 4.76 kB
Client pages/link gzip Size 2.06 kB 2.06 kB
Client pages/routerDirect Size 411 B 411 B
Client pages/routerDirect gzip Size 296 B 296 B
Client pages/withRouter Size 393 B 393 B
Client pages/withRouter gzip Size 280 B 280 B
Client main Size 23.3 kB 23.3 kB
Client main gzip Size 7.74 kB 7.74 kB
Client commons Size 184 kB 184 kB
Client commons gzip Size 59.7 kB 59.7 kB
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 769 B 769 B
Serverless pages/link Size 341 kB 341 kB
Serverless pages/link gzip Size 87.4 kB 87.4 kB
Serverless pages/index Size 332 kB 332 kB
Serverless pages/index gzip Size 85 kB 85 kB -1 B
Serverless pages/_error Size 332 kB 332 kB
Serverless pages/_error gzip Size 84.8 kB 84.8 kB
Serverless pages/routerDirect Size 332 kB 332 kB
Serverless pages/routerDirect gzip Size 85 kB 85 kB -1 B
Serverless pages/withRouter Size 332 kB 332 kB
Serverless pages/withRouter gzip Size 85 kB 85 kB -1 B
Build Dir Size 2.38 MB 2.38 MB

@github-actions
Copy link
Contributor

Stats from current PR

Click to expand stats
zeit/next.js canary huv1k/next.js api-extension Change
Build Duration 17s 16.3s -634ms
node_modules Size 40.9 MB 41.4 MB ⚠️ +488 kB
Total Bundle (main, webpack, commons) Size 210 kB 210 kB -411 B
Total Bundle (main, webpack, commons) gzip Size 69 kB 68.9 kB -121 B
Client _app Size 3.32 kB 2.92 kB -401 B
Client _app gzip Size 1.37 kB 1.2 kB -163 B
Client _error Size 8.25 kB 8.25 kB
Client _error gzip Size 3.13 kB 3.13 kB
Client pages/index Size 288 B 288 B
Client pages/index gzip Size 222 B 222 B
Client pages/link Size 4.19 kB 4.76 kB ⚠️ +564 B
Client pages/link gzip Size 1.85 kB 2.06 kB ⚠️ +208 B
Client pages/routerDirect Size 411 B 411 B
Client pages/routerDirect gzip Size 296 B 296 B
Client pages/withRouter Size 393 B 393 B
Client pages/withRouter gzip Size 280 B 280 B
Client main Size 22.8 kB 23.3 kB ⚠️ +564 B
Client main gzip Size 7.58 kB 7.74 kB ⚠️ +161 B
Client commons Size 184 kB 184 kB -574 B
Client commons gzip Size 59.8 kB 59.7 kB -119 B
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 769 B 769 B
Base Rendered Size 1.34 kB 1.34 kB
Build Dir Size 817 kB 813 kB -4.1 kB
Click to expand serverless stats
zeit/next.js canary huv1k/next.js api-extension Change
Build Duration 18s 18.4s ⚠️ +371ms
node_modules Size 40.9 MB 41.4 MB ⚠️ +488 kB
Total Bundle (main, webpack, commons) Size 210 kB 210 kB -411 B
Total Bundle (main, webpack, commons) gzip Size 69 kB 68.9 kB -121 B
Client _app Size 3.32 kB 2.92 kB -401 B
Client _app gzip Size 1.37 kB 1.2 kB -163 B
Client _error Size 8.25 kB 8.25 kB
Client _error gzip Size 3.13 kB 3.13 kB
Client pages/index Size 288 B 288 B
Client pages/index gzip Size 222 B 222 B
Client pages/link Size 4.19 kB 4.76 kB ⚠️ +564 B
Client pages/link gzip Size 1.85 kB 2.06 kB ⚠️ +208 B
Client pages/routerDirect Size 411 B 411 B
Client pages/routerDirect gzip Size 296 B 296 B
Client pages/withRouter Size 393 B 393 B
Client pages/withRouter gzip Size 280 B 280 B
Client main Size 22.8 kB 23.3 kB ⚠️ +564 B
Client main gzip Size 7.58 kB 7.74 kB ⚠️ +161 B
Client commons Size 184 kB 184 kB -574 B
Client commons gzip Size 59.8 kB 59.7 kB -119 B
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 769 B 769 B
Serverless pages/link Size 342 kB 341 kB -1.37 kB
Serverless pages/link gzip Size 87.7 kB 87.4 kB -287 B
Serverless pages/index Size 333 kB 332 kB -1.37 kB
Serverless pages/index gzip Size 85.3 kB 85 kB -289 B
Serverless pages/_error Size 333 kB 332 kB -1.37 kB
Serverless pages/_error gzip Size 85 kB 84.8 kB -275 B
Serverless pages/routerDirect Size 334 kB 332 kB -1.37 kB
Serverless pages/routerDirect gzip Size 85.3 kB 85 kB -289 B
Serverless pages/withRouter Size 334 kB 332 kB -1.37 kB
Serverless pages/withRouter gzip Size 85.2 kB 85 kB -284 B
Build Dir Size 2.39 MB 2.38 MB -8.86 kB

@github-actions
Copy link
Contributor

Stats from current PR

Click to expand stats
zeit/next.js canary huv1k/next.js api-extension Change
Build Duration 14.8s 14.6s -214ms
node_modules Size 40.9 MB 41.4 MB ⚠️ +495 kB
Total Bundle (main, webpack, commons) Size 210 kB 210 kB
Total Bundle (main, webpack, commons) gzip Size 69 kB 69 kB
Client _app Size 3.32 kB 3.32 kB
Client _app gzip Size 1.37 kB 1.37 kB
Client _error Size 8.25 kB 8.25 kB
Client _error gzip Size 3.13 kB 3.13 kB
Client pages/index Size 288 B 288 B
Client pages/index gzip Size 222 B 222 B
Client pages/link Size 4.19 kB 4.19 kB
Client pages/link gzip Size 1.85 kB 1.85 kB
Client pages/routerDirect Size 411 B 411 B
Client pages/routerDirect gzip Size 296 B 296 B
Client pages/withRouter Size 393 B 393 B
Client pages/withRouter gzip Size 280 B 280 B
Client main Size 22.8 kB 22.8 kB
Client main gzip Size 7.58 kB 7.58 kB
Client commons Size 184 kB 184 kB
Client commons gzip Size 59.8 kB 59.8 kB
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 769 B 769 B
Base Rendered Size 1.34 kB 1.34 kB
Build Dir Size 817 kB 817 kB
Click to expand serverless stats
zeit/next.js canary huv1k/next.js api-extension Change
Build Duration 15.9s 15.8s -132ms
node_modules Size 40.9 MB 41.4 MB ⚠️ +495 kB
Total Bundle (main, webpack, commons) Size 210 kB 210 kB
Total Bundle (main, webpack, commons) gzip Size 69 kB 69 kB
Client _app Size 3.32 kB 3.32 kB
Client _app gzip Size 1.37 kB 1.37 kB
Client _error Size 8.25 kB 8.25 kB
Client _error gzip Size 3.13 kB 3.13 kB
Client pages/index Size 288 B 288 B
Client pages/index gzip Size 222 B 222 B
Client pages/link Size 4.19 kB 4.19 kB
Client pages/link gzip Size 1.85 kB 1.85 kB
Client pages/routerDirect Size 411 B 411 B
Client pages/routerDirect gzip Size 296 B 296 B
Client pages/withRouter Size 393 B 393 B
Client pages/withRouter gzip Size 280 B 280 B
Client main Size 22.8 kB 22.8 kB
Client main gzip Size 7.58 kB 7.58 kB
Client commons Size 184 kB 184 kB
Client commons gzip Size 59.8 kB 59.8 kB
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 769 B 769 B
Serverless pages/link Size 342 kB 342 kB
Serverless pages/link gzip Size 87.7 kB 87.7 kB
Serverless pages/index Size 333 kB 333 kB
Serverless pages/index gzip Size 85.3 kB 85.3 kB -1 B
Serverless pages/_error Size 333 kB 333 kB
Serverless pages/_error gzip Size 85 kB 85 kB
Serverless pages/routerDirect Size 334 kB 334 kB
Serverless pages/routerDirect gzip Size 85.3 kB 85.3 kB -1 B
Serverless pages/withRouter Size 334 kB 334 kB
Serverless pages/withRouter gzip Size 85.2 kB 85.2 kB -1 B
Build Dir Size 2.39 MB 2.39 MB

@timneutkens timneutkens merged commit c821e83 into vercel:canary Jun 5, 2019
@github-actions
Copy link
Contributor

github-actions bot commented Jun 5, 2019

Stats from current PR

Click to expand stats
zeit/next.js canary huv1k/next.js api-extension Change
Build Duration 15.2s 14.2s -1s
node_modules Size 40.9 MB 41.4 MB ⚠️ +495 kB
Total Bundle (main, webpack, commons) Size 210 kB 210 kB
Total Bundle (main, webpack, commons) gzip Size 69 kB 69 kB -1 B
Client _app Size 3.33 kB 3.33 kB
Client _app gzip Size 1.37 kB 1.37 kB
Client _error Size 8.25 kB 8.25 kB
Client _error gzip Size 3.13 kB 3.13 kB
Client pages/index Size 288 B 288 B
Client pages/index gzip Size 222 B 222 B
Client pages/link Size 4.19 kB 4.19 kB
Client pages/link gzip Size 1.85 kB 1.85 kB
Client pages/routerDirect Size 411 B 411 B
Client pages/routerDirect gzip Size 296 B 296 B
Client pages/withRouter Size 393 B 393 B
Client pages/withRouter gzip Size 280 B 280 B
Client main Size 22.8 kB 22.8 kB
Client main gzip Size 7.58 kB 7.58 kB -1 B
Client commons Size 184 kB 184 kB
Client commons gzip Size 59.8 kB 59.8 kB
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 769 B 769 B
Base Rendered Size 1.34 kB 1.34 kB
Build Dir Size 817 kB 817 kB
Click to expand serverless stats
zeit/next.js canary huv1k/next.js api-extension Change
Build Duration 16.1s 16.1s -56ms
node_modules Size 40.9 MB 41.4 MB ⚠️ +495 kB
Total Bundle (main, webpack, commons) Size 210 kB 210 kB
Total Bundle (main, webpack, commons) gzip Size 69 kB 69 kB
Client _app Size 3.33 kB 3.33 kB
Client _app gzip Size 1.37 kB 1.37 kB
Client _error Size 8.25 kB 8.25 kB
Client _error gzip Size 3.13 kB 3.13 kB
Client pages/index Size 288 B 288 B
Client pages/index gzip Size 222 B 222 B
Client pages/link Size 4.19 kB 4.19 kB
Client pages/link gzip Size 1.85 kB 1.85 kB
Client pages/routerDirect Size 411 B 411 B
Client pages/routerDirect gzip Size 296 B 296 B
Client pages/withRouter Size 393 B 393 B
Client pages/withRouter gzip Size 280 B 280 B
Client main Size 22.8 kB 22.8 kB
Client main gzip Size 7.58 kB 7.58 kB
Client commons Size 184 kB 184 kB
Client commons gzip Size 59.8 kB 59.8 kB
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 769 B 769 B
Serverless pages/link Size 342 kB 342 kB
Serverless pages/link gzip Size 87.7 kB 87.7 kB -2 B
Serverless pages/index Size 333 kB 333 kB
Serverless pages/index gzip Size 85.3 kB 85.3 kB -1 B
Serverless pages/_error Size 333 kB 333 kB
Serverless pages/_error gzip Size 85 kB 85 kB -1 B
Serverless pages/routerDirect Size 334 kB 334 kB
Serverless pages/routerDirect gzip Size 85.3 kB 85.3 kB -1 B
Serverless pages/withRouter Size 334 kB 334 kB
Serverless pages/withRouter gzip Size 85.2 kB 85.2 kB -2 B
Build Dir Size 2.39 MB 2.39 MB

@huv1k huv1k deleted the api-extension branch June 5, 2019 11:30
@vercel vercel locked as resolved and limited conversation to collaborators Feb 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants