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

with-zustand example fix for build error on ssr page #19465

Merged
merged 1 commit into from
Dec 28, 2020

Conversation

DaneTheory
Copy link
Contributor

The example with-zustand, in pages/ssr.js the import call made to store used an invalid relative path breaking the example on run after build. This pull request is a quick fix for this. Nothing fancy, just set the correct path for store to be imported correctly.

@ijjk ijjk added the examples Issue/PR related to examples label Nov 24, 2020
@vercel vercel bot temporarily deployed to Preview November 24, 2020 00:41 Inactive
Copy link
Member

@lfades lfades left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! 💯

@DaneTheory
Copy link
Contributor Author

@lfades np! Cheers 🍺

@ijjk
Copy link
Member

ijjk commented Nov 24, 2020

Stats from current PR

Default Server Mode (Decrease detected ✓)
General
vercel/next.js canary DaneTheory/next.js zustand_example_ssr_page_fix Change
buildDuration 9.2s 9.4s ⚠️ +111ms
nodeModulesSize 84.9 MB 84.9 MB
Page Load Tests Overall decrease ⚠️
vercel/next.js canary DaneTheory/next.js zustand_example_ssr_page_fix Change
/ failed reqs 0 0
/ total time (seconds) 2.059 2.075 ⚠️ +0.02
/ avg req/sec 1214.44 1204.89 ⚠️ -9.55
/error-in-render failed reqs 0 0
/error-in-render total time (seconds) 1.156 1.186 ⚠️ +0.03
/error-in-render avg req/sec 2163.23 2108.75 ⚠️ -54.48
Client Bundles (main, webpack, commons)
vercel/next.js canary DaneTheory/next.js zustand_example_ssr_page_fix Change
677f882d2ed8..8b81.js gzip 12.8 kB 12.8 kB
framework.HASH.js gzip 39 kB 39 kB
main-0103832..fd40.js gzip 6.54 kB 6.54 kB
webpack-e067..f178.js gzip 751 B 751 B
Overall change 59 kB 59 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary DaneTheory/next.js zustand_example_ssr_page_fix Change
polyfills-4b..e242.js gzip 31 kB 31 kB
Overall change 31 kB 31 kB
Client Pages
vercel/next.js canary DaneTheory/next.js zustand_example_ssr_page_fix Change
_app-3b0cf13..85f8.js gzip 1.28 kB 1.28 kB
_error-6f635..c393.js gzip 3.44 kB 3.44 kB
hooks-d4ffc3..9e0f.js gzip 887 B 887 B
index-17468f..5d83.js gzip 227 B 227 B
link-b618194..5477.js gzip 1.61 kB 1.61 kB
routerDirect..924c.js gzip 284 B 284 B
withRouter-7..c13d.js gzip 284 B 284 B
Overall change 8.01 kB 8.01 kB
Client Build Manifests
vercel/next.js canary DaneTheory/next.js zustand_example_ssr_page_fix Change
_buildManifest.js gzip 321 B 321 B
Overall change 321 B 321 B
Rendered Page Sizes
vercel/next.js canary DaneTheory/next.js zustand_example_ssr_page_fix Change
index.html gzip 615 B 615 B
link.html gzip 622 B 622 B
withRouter.html gzip 609 B 609 B
Overall change 1.85 kB 1.85 kB

Serverless Mode
General
vercel/next.js canary DaneTheory/next.js zustand_example_ssr_page_fix Change
buildDuration 10.8s 10.9s ⚠️ +90ms
nodeModulesSize 84.9 MB 84.9 MB
Client Bundles (main, webpack, commons)
vercel/next.js canary DaneTheory/next.js zustand_example_ssr_page_fix Change
677f882d2ed8..8b81.js gzip 12.8 kB 12.8 kB
framework.HASH.js gzip 39 kB 39 kB
main-0103832..fd40.js gzip 6.54 kB 6.54 kB
webpack-e067..f178.js gzip 751 B 751 B
Overall change 59 kB 59 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary DaneTheory/next.js zustand_example_ssr_page_fix Change
polyfills-4b..e242.js gzip 31 kB 31 kB
Overall change 31 kB 31 kB
Client Pages
vercel/next.js canary DaneTheory/next.js zustand_example_ssr_page_fix Change
_app-3b0cf13..85f8.js gzip 1.28 kB 1.28 kB
_error-6f635..c393.js gzip 3.44 kB 3.44 kB
hooks-d4ffc3..9e0f.js gzip 887 B 887 B
index-17468f..5d83.js gzip 227 B 227 B
link-b618194..5477.js gzip 1.61 kB 1.61 kB
routerDirect..924c.js gzip 284 B 284 B
withRouter-7..c13d.js gzip 284 B 284 B
Overall change 8.01 kB 8.01 kB
Client Build Manifests
vercel/next.js canary DaneTheory/next.js zustand_example_ssr_page_fix Change
_buildManifest.js gzip 321 B 321 B
Overall change 321 B 321 B
Serverless bundles
vercel/next.js canary DaneTheory/next.js zustand_example_ssr_page_fix Change
_error.js 915 kB 915 kB
404.html 2.67 kB 2.67 kB
hooks.html 1.92 kB 1.92 kB
index.js 915 kB 915 kB
link.js 973 kB 973 kB
routerDirect.js 966 kB 966 kB
withRouter.js 966 kB 966 kB
Overall change 4.74 MB 4.74 MB
Commit: c4b1318

@Timer Timer merged commit 9553b6d into vercel:canary Dec 28, 2020
@DaneTheory DaneTheory deleted the zustand_example_ssr_page_fix branch February 23, 2021 03:45
@vercel vercel locked as resolved and limited conversation to collaborators Jan 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
examples Issue/PR related to examples
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants