-
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 examples: static export using dynamic routes instead express #9237
Update examples: static export using dynamic routes instead express #9237
Conversation
bb3310e
to
8dd9417
Compare
Stats from current PRDefault Server Mode (Decrease detected ✓)General Overall decrease ✓
Client Bundles (main, webpack, commons) Overall decrease ✓
Client Bundles (main, webpack, commons) Modern Overall decrease ✓
Client Pages
Client Pages Modern
Client Build Manifests
Rendered Page Sizes
DiffsDiff for main-HASH.js@@ -340,7 +340,7 @@ if (!window.Promise) {
var data = JSON.parse(document.getElementById('__NEXT_DATA__').textContent);
window.__NEXT_DATA__ = data;
-var version = "9.1.2-canary.10";
+var version = "9.1.2-canary.9";
exports.version = version;
var props = data.props,
err = data.err, Diff for main-HASH.module.js@@ -339,7 +339,7 @@ if (!window.Promise) {
var data = JSON.parse(document.getElementById('__NEXT_DATA__').textContent);
window.__NEXT_DATA__ = data;
-var version = "9.1.2-canary.10";
+var version = "9.1.2-canary.9";
exports.version = version;
var {
props, Diff for index.html@@ -12,7 +12,7 @@
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/runtime/main-a085a6c64ecf07be5320.module.js"
+ <link rel="preload" href="/_next/static/runtime/main-11265a5ef9be647fbeaa.module.js"
as="script" crossorigin="anonymous" />
<link rel="preload" href="/_next/static/chunks/framework.cdb73e402d876d4ac87f.module.js"
as="script" crossorigin="anonymous" />
@@ -43,9 +43,9 @@
async="" crossorigin="anonymous" nomodule=""></script>
<script src="/_next/static/runtime/webpack-7928590be3ef2e55b835.module.js"
async="" crossorigin="anonymous" type="module"></script>
- <script src="/_next/static/runtime/main-b03421a7dc68f3d2666e.js"
+ <script src="/_next/static/runtime/main-3ec75919f469510f6b3b.js"
async="" crossorigin="anonymous" nomodule=""></script>
- <script src="/_next/static/runtime/main-a085a6c64ecf07be5320.module.js"
+ <script src="/_next/static/runtime/main-11265a5ef9be647fbeaa.module.js"
async="" crossorigin="anonymous" type="module"></script>
<script src="/_next/static/chunks/framework.219514909c9db8a9ff76.js"
async="" crossorigin="anonymous" nomodule=""></script> Diff for link.html@@ -20,7 +20,7 @@
as="script" crossorigin="anonymous" />
<link rel="preload" href="/_next/static/chunks/16b1a72255206b7853bf6603dc58ec83de39b142.8d1caa0eed52bc802a38.module.js"
as="script" crossorigin="anonymous" />
- <link rel="preload" href="/_next/static/runtime/main-a085a6c64ecf07be5320.module.js"
+ <link rel="preload" href="/_next/static/runtime/main-11265a5ef9be647fbeaa.module.js"
as="script" crossorigin="anonymous" />
</head>
@@ -66,9 +66,9 @@
async="" crossorigin="anonymous" nomodule=""></script>
<script src="/_next/static/chunks/16b1a72255206b7853bf6603dc58ec83de39b142.8d1caa0eed52bc802a38.module.js"
async="" crossorigin="anonymous" type="module"></script>
- <script src="/_next/static/runtime/main-b03421a7dc68f3d2666e.js"
+ <script src="/_next/static/runtime/main-3ec75919f469510f6b3b.js"
async="" crossorigin="anonymous" nomodule=""></script>
- <script src="/_next/static/runtime/main-a085a6c64ecf07be5320.module.js"
+ <script src="/_next/static/runtime/main-11265a5ef9be647fbeaa.module.js"
async="" crossorigin="anonymous" type="module"></script>
<script src="/_next/static/BUILD_ID/_buildManifest.js" async=""
crossorigin="anonymous" nomodule=""></script> Diff for withRouter.html@@ -20,7 +20,7 @@
as="script" crossorigin="anonymous" />
<link rel="preload" href="/_next/static/chunks/16b1a72255206b7853bf6603dc58ec83de39b142.8d1caa0eed52bc802a38.module.js"
as="script" crossorigin="anonymous" />
- <link rel="preload" href="/_next/static/runtime/main-a085a6c64ecf07be5320.module.js"
+ <link rel="preload" href="/_next/static/runtime/main-11265a5ef9be647fbeaa.module.js"
as="script" crossorigin="anonymous" />
</head>
@@ -64,9 +64,9 @@
async="" crossorigin="anonymous" nomodule=""></script>
<script src="/_next/static/chunks/16b1a72255206b7853bf6603dc58ec83de39b142.8d1caa0eed52bc802a38.module.js"
async="" crossorigin="anonymous" type="module"></script>
- <script src="/_next/static/runtime/main-b03421a7dc68f3d2666e.js"
+ <script src="/_next/static/runtime/main-3ec75919f469510f6b3b.js"
async="" crossorigin="anonymous" nomodule=""></script>
- <script src="/_next/static/runtime/main-a085a6c64ecf07be5320.module.js"
+ <script src="/_next/static/runtime/main-11265a5ef9be647fbeaa.module.js"
async="" crossorigin="anonymous" type="module"></script>
<script src="/_next/static/BUILD_ID/_buildManifest.js" async=""
crossorigin="anonymous" nomodule=""></script> Serverless Mode (Decrease detected ✓)General Overall decrease ✓
Client Bundles (main, webpack, commons) Overall decrease ✓
Client Bundles (main, webpack, commons) Modern Overall decrease ✓
Client Pages
Client Pages Modern
Client Build Manifests
Serverless bundles
Commit: bb3310e |
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
Commit: 8dd9417 |
@@ -13,7 +13,7 @@ module.exports = { | |||
(pages, post) => | |||
Object.assign({}, pages, { | |||
[`/post/${post.id}`]: { | |||
page: '/post', | |||
page: '/post/[id]', | |||
query: { id: post.id } |
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.
query: { id: post.id } |
We should be able to remove this since we parse/provide it for dynamic routes automatically
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.
yea, good point, I'll check it
Awesome @meuwka! |
No description provided.