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

Add appDir field to server files manifest #22915

Merged
merged 1 commit into from
Mar 9, 2021

Conversation

ijjk
Copy link
Member

@ijjk ijjk commented Mar 9, 2021

This adds an appDir field to the required-server-files manifest signifying where the app source is located.

x-ref: #22847

@ijjk
Copy link
Member Author

ijjk commented Mar 9, 2021

Stats from current PR

Default Server Mode (Decrease detected ✓)
General Overall increase ⚠️
vercel/next.js canary ijjk/next.js add/app-dir-field Change
buildDuration 13.1s 12.8s -299ms
nodeModulesSize 42.8 MB 42.8 MB ⚠️ +66 B
Page Load Tests Overall decrease ⚠️
vercel/next.js canary ijjk/next.js add/app-dir-field Change
/ failed reqs 0 0
/ total time (seconds) 2.327 2.337 ⚠️ +0.01
/ avg req/sec 1074.35 1069.75 ⚠️ -4.6
/error-in-render failed reqs 0 0
/error-in-render total time (seconds) 1.602 1.599 0
/error-in-render avg req/sec 1560.28 1563.68 +3.4
Client Bundles (main, webpack, commons)
vercel/next.js canary ijjk/next.js add/app-dir-field Change
677f882d2ed8..a2e7.js gzip 13.4 kB 13.4 kB
framework.HASH.js gzip 39 kB 39 kB
main-HASH.js gzip 6.65 kB 6.65 kB
webpack-HASH.js gzip 751 B 751 B
Overall change 59.8 kB 59.8 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary ijjk/next.js add/app-dir-field Change
polyfills-HASH.js gzip 31.3 kB 31.3 kB
Overall change 31.3 kB 31.3 kB
Client Pages
vercel/next.js canary ijjk/next.js add/app-dir-field Change
_app-2a09aa2..4a98.js gzip 1.28 kB 1.28 kB
_error-8b758..aef6.js gzip 3.46 kB 3.46 kB
amp-e3e9bc99..932c.js gzip 536 B 536 B
hooks-5023ef..3670.js gzip 888 B 888 B
index-3a2b03..c677.js gzip 227 B 227 B
link-177412b..043e.js gzip 1.67 kB 1.67 kB
routerDirect..1a66.js gzip 303 B 303 B
withRouter-9..1b7d.js gzip 302 B 302 B
Overall change 8.66 kB 8.66 kB
Client Build Manifests
vercel/next.js canary ijjk/next.js add/app-dir-field Change
_buildManifest.js gzip 347 B 347 B
Overall change 347 B 347 B
Rendered Page Sizes
vercel/next.js canary ijjk/next.js add/app-dir-field Change
index.html gzip 613 B 613 B
link.html gzip 621 B 621 B
withRouter.html gzip 607 B 607 B
Overall change 1.84 kB 1.84 kB

Serverless Mode
General Overall increase ⚠️
vercel/next.js canary ijjk/next.js add/app-dir-field Change
buildDuration 14.4s 14.5s ⚠️ +153ms
nodeModulesSize 42.8 MB 42.8 MB ⚠️ +66 B
Client Bundles (main, webpack, commons)
vercel/next.js canary ijjk/next.js add/app-dir-field Change
677f882d2ed8..a2e7.js gzip 13.4 kB 13.4 kB
framework.HASH.js gzip 39 kB 39 kB
main-HASH.js gzip 6.65 kB 6.65 kB
webpack-HASH.js gzip 751 B 751 B
Overall change 59.8 kB 59.8 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary ijjk/next.js add/app-dir-field Change
polyfills-HASH.js gzip 31.3 kB 31.3 kB
Overall change 31.3 kB 31.3 kB
Client Pages
vercel/next.js canary ijjk/next.js add/app-dir-field Change
_app-2a09aa2..4a98.js gzip 1.28 kB 1.28 kB
_error-8b758..aef6.js gzip 3.46 kB 3.46 kB
amp-e3e9bc99..932c.js gzip 536 B 536 B
hooks-5023ef..3670.js gzip 888 B 888 B
index-3a2b03..c677.js gzip 227 B 227 B
link-177412b..043e.js gzip 1.67 kB 1.67 kB
routerDirect..1a66.js gzip 303 B 303 B
withRouter-9..1b7d.js gzip 302 B 302 B
Overall change 8.66 kB 8.66 kB
Client Build Manifests
vercel/next.js canary ijjk/next.js add/app-dir-field Change
_buildManifest.js gzip 347 B 347 B
Overall change 347 B 347 B
Serverless bundles
vercel/next.js canary ijjk/next.js add/app-dir-field Change
_error.js 1.02 MB 1.02 MB
404.html 2.67 kB 2.67 kB
500.html 2.65 kB 2.65 kB
amp.amp.html 10.6 kB 10.6 kB
amp.html 1.86 kB 1.86 kB
hooks.html 1.92 kB 1.92 kB
index.js 1.02 MB 1.02 MB
link.js 1.08 MB 1.08 MB
routerDirect.js 1.07 MB 1.07 MB
withRouter.js 1.07 MB 1.07 MB
Overall change 5.27 MB 5.27 MB

Webpack 5 Mode (Increase detected ⚠️)
General Overall increase ⚠️
vercel/next.js canary ijjk/next.js add/app-dir-field Change
buildDuration 15.1s 15.2s ⚠️ +134ms
nodeModulesSize 42.8 MB 42.8 MB ⚠️ +66 B
Page Load Tests Overall increase ✓
vercel/next.js canary ijjk/next.js add/app-dir-field Change
/ failed reqs 0 0
/ total time (seconds) 2.34 2.294 -0.05
/ avg req/sec 1068.57 1089.65 +21.08
/error-in-render failed reqs 0 0
/error-in-render total time (seconds) 1.585 1.573 -0.01
/error-in-render avg req/sec 1577.58 1589.18 +11.6
Client Bundles (main, webpack, commons)
vercel/next.js canary ijjk/next.js add/app-dir-field Change
597-2bc2376a..203d.js gzip 13.3 kB 13.3 kB
framework.HASH.js gzip 39.3 kB 39.3 kB
main-HASH.js gzip 6.59 kB 6.59 kB
webpack-HASH.js gzip 954 B 954 B
Overall change 60.2 kB 60.2 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary ijjk/next.js add/app-dir-field Change
polyfills-HASH.js gzip 31.1 kB 31.1 kB
Overall change 31.1 kB 31.1 kB
Client Pages
vercel/next.js canary ijjk/next.js add/app-dir-field Change
_app-aedc815..1421.js gzip 1.26 kB 1.26 kB
_error-71ec2..1a96.js gzip 3.38 kB 3.38 kB
amp-33a09cb0..6745.js gzip 536 B 536 B
hooks-4e968a..f870.js gzip 902 B 902 B
index-5c6845..f75c.js gzip 230 B 230 B
link-99f0c6c..b84a.js gzip 1.65 kB 1.65 kB
routerDirect..bb56.js gzip 306 B 306 B
withRouter-7..2133.js gzip 302 B 302 B
Overall change 8.57 kB 8.57 kB
Client Build Manifests
vercel/next.js canary ijjk/next.js add/app-dir-field Change
_buildManifest.js gzip 326 B 326 B
Overall change 326 B 326 B
Rendered Page Sizes
vercel/next.js canary ijjk/next.js add/app-dir-field Change
index.html gzip 585 B 585 B
link.html gzip 593 B 593 B
withRouter.html gzip 581 B 581 B
Overall change 1.76 kB 1.76 kB

Diffs

Diff for index.html
@@ -43,7 +43,7 @@
         "props": { "pageProps": {} },
         "page": "/",
         "query": {},
-        "buildId": "p-PNT7Cn1wkTgLHj_yY7g",
+        "buildId": "r1n88mwd5ZBqEGTkyb_wh",
         "isFallback": false,
         "gip": true
       }
@@ -77,11 +77,11 @@
       async=""
     ></script>
     <script
-      src="/_next/static/p-PNT7Cn1wkTgLHj_yY7g/_buildManifest.js"
+      src="/_next/static/r1n88mwd5ZBqEGTkyb_wh/_buildManifest.js"
       async=""
     ></script>
     <script
-      src="/_next/static/p-PNT7Cn1wkTgLHj_yY7g/_ssgManifest.js"
+      src="/_next/static/r1n88mwd5ZBqEGTkyb_wh/_ssgManifest.js"
       async=""
     ></script>
   </body>
Diff for link.html
@@ -48,7 +48,7 @@
         "props": { "pageProps": {} },
         "page": "/link",
         "query": {},
-        "buildId": "p-PNT7Cn1wkTgLHj_yY7g",
+        "buildId": "r1n88mwd5ZBqEGTkyb_wh",
         "isFallback": false,
         "gip": true
       }
@@ -82,11 +82,11 @@
       async=""
     ></script>
     <script
-      src="/_next/static/p-PNT7Cn1wkTgLHj_yY7g/_buildManifest.js"
+      src="/_next/static/r1n88mwd5ZBqEGTkyb_wh/_buildManifest.js"
       async=""
     ></script>
     <script
-      src="/_next/static/p-PNT7Cn1wkTgLHj_yY7g/_ssgManifest.js"
+      src="/_next/static/r1n88mwd5ZBqEGTkyb_wh/_ssgManifest.js"
       async=""
     ></script>
   </body>
Diff for withRouter.html
@@ -43,7 +43,7 @@
         "props": { "pageProps": {} },
         "page": "/withRouter",
         "query": {},
-        "buildId": "p-PNT7Cn1wkTgLHj_yY7g",
+        "buildId": "r1n88mwd5ZBqEGTkyb_wh",
         "isFallback": false,
         "gip": true
       }
@@ -77,11 +77,11 @@
       async=""
     ></script>
     <script
-      src="/_next/static/p-PNT7Cn1wkTgLHj_yY7g/_buildManifest.js"
+      src="/_next/static/r1n88mwd5ZBqEGTkyb_wh/_buildManifest.js"
       async=""
     ></script>
     <script
-      src="/_next/static/p-PNT7Cn1wkTgLHj_yY7g/_ssgManifest.js"
+      src="/_next/static/r1n88mwd5ZBqEGTkyb_wh/_ssgManifest.js"
       async=""
     ></script>
   </body>
Commit: ada7aae

@kodiakhq kodiakhq bot merged commit e84571d into vercel:canary Mar 9, 2021
@ijjk ijjk deleted the add/app-dir-field branch March 9, 2021 18:42
This was referenced Mar 16, 2021
@vercel vercel locked as resolved and limited conversation to collaborators Jan 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants