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

[cms-sanity] Expose the project id to the browser #14941

Merged
merged 3 commits into from
Jul 8, 2020

Conversation

lfades
Copy link
Member

@lfades lfades commented Jul 7, 2020

Fixes #14792
Closes #14814

The project id is currently used by Sanity's image builder, which is used in a React component.

@maybac It was faster for me to create a new PR but the credit goes to you, thank you!.

@ijjk ijjk added the examples Issue was opened via the examples template. label Jul 7, 2020
@ijjk
Copy link
Member

ijjk commented Jul 7, 2020

Stats from current PR

Default Server Mode (Increase detected ⚠️)
General
vercel/next.js canary lfades/next.js fix/cms-sanity Change
buildDuration 11.3s 11.1s -170ms
nodeModulesSize 66.1 MB 66.1 MB
Page Load Tests Overall increase ✓
vercel/next.js canary lfades/next.js fix/cms-sanity Change
/ failed reqs 0 0
/ total time (seconds) 1.855 1.782 -0.07
/ avg req/sec 1347.61 1402.72 +55.11
/error-in-render failed reqs 0 0
/error-in-render total time (seconds) 1.182 1.16 -0.02
/error-in-render avg req/sec 2114.33 2155.72 +41.39
Client Bundles (main, webpack, commons)
vercel/next.js canary lfades/next.js fix/cms-sanity Change
main-HASH.js gzip 6.63 kB 6.63 kB
webpack-HASH.js gzip 751 B 751 B
19b7e98f51cc..c646.js gzip 10.7 kB 10.7 kB
framework.HASH.js gzip 39.1 kB 39.1 kB
Overall change 57.2 kB 57.2 kB
Client Bundles (main, webpack, commons) Modern
vercel/next.js canary lfades/next.js fix/cms-sanity Change
main-HASH.module.js gzip 5.71 kB 5.71 kB
webpack-HASH..dule.js gzip 751 B 751 B
19b7e98f51cc..dule.js gzip 7.1 kB 7.1 kB
framework.HA..dule.js gzip 39.1 kB 39.1 kB
Overall change 52.7 kB 52.7 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary lfades/next.js fix/cms-sanity Change
polyfills-HASH.js gzip 26.4 kB 26.4 kB
Overall change 26.4 kB 26.4 kB
Client Build Manifests
vercel/next.js canary lfades/next.js fix/cms-sanity Change
_buildManifest.js gzip 268 B 268 B
_buildManife..dule.js gzip 272 B 272 B
Overall change 540 B 540 B
Rendered Page Sizes
vercel/next.js canary lfades/next.js fix/cms-sanity Change
index.html gzip 954 B 954 B
link.html gzip 960 B 960 B
withRouter.html gzip 946 B 946 B
Overall change 2.86 kB 2.86 kB

Serverless Mode
General
vercel/next.js canary lfades/next.js fix/cms-sanity Change
buildDuration 12.4s 12s -371ms
nodeModulesSize 66.1 MB 66.1 MB
Client Bundles (main, webpack, commons)
vercel/next.js canary lfades/next.js fix/cms-sanity Change
main-HASH.js gzip 6.63 kB 6.63 kB
webpack-HASH.js gzip 751 B 751 B
19b7e98f51cc..c646.js gzip 10.7 kB 10.7 kB
framework.HASH.js gzip 39.1 kB 39.1 kB
Overall change 57.2 kB 57.2 kB
Client Bundles (main, webpack, commons) Modern
vercel/next.js canary lfades/next.js fix/cms-sanity Change
main-HASH.module.js gzip 5.71 kB 5.71 kB
webpack-HASH..dule.js gzip 751 B 751 B
19b7e98f51cc..dule.js gzip 7.1 kB 7.1 kB
framework.HA..dule.js gzip 39.1 kB 39.1 kB
Overall change 52.7 kB 52.7 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary lfades/next.js fix/cms-sanity Change
polyfills-HASH.js gzip 26.4 kB 26.4 kB
Overall change 26.4 kB 26.4 kB
Client Build Manifests
vercel/next.js canary lfades/next.js fix/cms-sanity Change
_buildManifest.js gzip 268 B 268 B
_buildManife..dule.js gzip 272 B 272 B
Overall change 540 B 540 B
Serverless bundles
vercel/next.js canary lfades/next.js fix/cms-sanity Change
_error.js 876 kB 876 kB
404.html 4.17 kB 4.17 kB
hooks.html 3.79 kB 3.79 kB
index.js 877 kB 877 kB
link.js 915 kB 915 kB
routerDirect.js 909 kB 909 kB
withRouter.js 909 kB 909 kB
Overall change 4.49 MB 4.49 MB
Commit: 67d94e2

@timneutkens
Copy link
Member

Thanks @Maybach91 🙏

@ijjk
Copy link
Member

ijjk commented Jul 8, 2020

Stats from current PR

Default Server Mode (Decrease detected ✓)
General
vercel/next.js canary lfades/next.js fix/cms-sanity Change
buildDuration 12.9s 13.3s ⚠️ +347ms
nodeModulesSize 65.9 MB 65.9 MB
Page Load Tests Overall decrease ⚠️
vercel/next.js canary lfades/next.js fix/cms-sanity Change
/ failed reqs 0 0
/ total time (seconds) 2.25 2.324 ⚠️ +0.07
/ avg req/sec 1111.04 1075.56 ⚠️ -35.48
/error-in-render failed reqs 0 0
/error-in-render total time (seconds) 1.452 1.463 ⚠️ +0.01
/error-in-render avg req/sec 1721.88 1709.2 ⚠️ -12.68
Client Bundles (main, webpack, commons)
vercel/next.js canary lfades/next.js fix/cms-sanity Change
main-HASH.js gzip 6.63 kB 6.63 kB
webpack-HASH.js gzip 751 B 751 B
19b7e98f51cc..c646.js gzip 10.7 kB 10.7 kB
framework.HASH.js gzip 39.1 kB 39.1 kB
Overall change 57.2 kB 57.2 kB
Client Bundles (main, webpack, commons) Modern
vercel/next.js canary lfades/next.js fix/cms-sanity Change
main-HASH.module.js gzip 5.71 kB 5.71 kB
webpack-HASH..dule.js gzip 751 B 751 B
19b7e98f51cc..dule.js gzip 7.1 kB 7.1 kB
framework.HA..dule.js gzip 39.1 kB 39.1 kB
Overall change 52.7 kB 52.7 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary lfades/next.js fix/cms-sanity Change
polyfills-HASH.js gzip 26.4 kB 26.4 kB
Overall change 26.4 kB 26.4 kB
Client Build Manifests
vercel/next.js canary lfades/next.js fix/cms-sanity Change
_buildManifest.js gzip 268 B 268 B
_buildManife..dule.js gzip 272 B 272 B
Overall change 540 B 540 B
Rendered Page Sizes
vercel/next.js canary lfades/next.js fix/cms-sanity Change
index.html gzip 954 B 954 B
link.html gzip 960 B 960 B
withRouter.html gzip 946 B 946 B
Overall change 2.86 kB 2.86 kB

Serverless Mode
General
vercel/next.js canary lfades/next.js fix/cms-sanity Change
buildDuration 14.7s 14.3s -426ms
nodeModulesSize 65.9 MB 65.9 MB
Client Bundles (main, webpack, commons)
vercel/next.js canary lfades/next.js fix/cms-sanity Change
main-HASH.js gzip 6.63 kB 6.63 kB
webpack-HASH.js gzip 751 B 751 B
19b7e98f51cc..c646.js gzip 10.7 kB 10.7 kB
framework.HASH.js gzip 39.1 kB 39.1 kB
Overall change 57.2 kB 57.2 kB
Client Bundles (main, webpack, commons) Modern
vercel/next.js canary lfades/next.js fix/cms-sanity Change
main-HASH.module.js gzip 5.71 kB 5.71 kB
webpack-HASH..dule.js gzip 751 B 751 B
19b7e98f51cc..dule.js gzip 7.1 kB 7.1 kB
framework.HA..dule.js gzip 39.1 kB 39.1 kB
Overall change 52.7 kB 52.7 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary lfades/next.js fix/cms-sanity Change
polyfills-HASH.js gzip 26.4 kB 26.4 kB
Overall change 26.4 kB 26.4 kB
Client Build Manifests
vercel/next.js canary lfades/next.js fix/cms-sanity Change
_buildManifest.js gzip 268 B 268 B
_buildManife..dule.js gzip 272 B 272 B
Overall change 540 B 540 B
Serverless bundles
vercel/next.js canary lfades/next.js fix/cms-sanity Change
_error.js 876 kB 876 kB
404.html 4.17 kB 4.17 kB
hooks.html 3.79 kB 3.79 kB
index.js 877 kB 877 kB
link.js 915 kB 915 kB
routerDirect.js 909 kB 909 kB
withRouter.js 909 kB 909 kB
Overall change 4.49 MB 4.49 MB
Commit: c67b618

@kodiakhq kodiakhq bot merged commit 731cfa4 into vercel:canary Jul 8, 2020
@Maybach91
Copy link

yay, thanks for cleaning it up, @lfades and approving it, @timneutkens :)

rokinsky pushed a commit to rokinsky/next.js that referenced this pull request Jul 11, 2020
Fixes vercel#14792
Closes vercel#14814

The project id is currently used by Sanity's image builder, which is used in a React component.

@maybac It was faster for me to create a new PR but the credit goes to you, thank you!.
@vercel vercel locked as resolved and limited conversation to collaborators Jan 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
examples Issue was opened via the examples template.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[cms-sanity] Add NEXT_PUBLIC_ to readme env variables
4 participants