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

clients/docs: adjust nextjs docs #4786

Merged
merged 1 commit into from
Jan 4, 2025
Merged

clients/docs: adjust nextjs docs #4786

merged 1 commit into from
Jan 4, 2025

Conversation

emilwidlund
Copy link
Member

No description provided.

Copy link

vercel bot commented Jan 4, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
polar 🔄 Building (Inspect) Visit Preview 💬 Add feedback Jan 4, 2025 1:33pm
polar-sandbox 🔄 Building (Inspect) Visit Preview 💬 Add feedback Jan 4, 2025 1:33pm

@emilwidlund emilwidlund enabled auto-merge (rebase) January 4, 2025 13:33
Copy link
Contributor

github-actions bot commented Jan 4, 2025

📦 Next.js Bundle Analysis for web

This analysis was generated by the Next.js Bundle Analysis action. 🤖

Ninety Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load % of Budget (350 KB)
/checkout/[clientSecret]/confirmation/page 279.46 KB 434.72 KB 124.21% (+/- <0.01%)
/(main)/(topbar)/layout 242.2 KB 397.47 KB 113.56% (+/- <0.01%)
/(main)/[organization]/(header)/layout 277.27 KB 432.54 KB 123.58% (+/- <0.01%)
/(main)/[organization]/(header)/page 138.36 KB 293.63 KB 83.89% (+/- <0.01%)
/(main)/[organization]/(header)/issues/page 124.41 KB 279.67 KB 79.91% (+/- <0.01%)
/(main)/[organization]/[repo]/issues/[number]/(create)/page 201.23 KB 356.5 KB 101.86% (+/- <0.01%)
/(main)/[organization]/[repo]/layout 233.63 KB 388.9 KB 111.11% (🟡 +0.01%)
/(main)/[organization]/[repo]/page 204.97 KB 360.24 KB 102.93% (+/- <0.01%)
/(main)/[organization]/[repo]/issues/[number]/status/page 227.77 KB 383.04 KB 109.44% (+/- <0.01%)
/(main)/[organization]/portal/page 220.8 KB 376.07 KB 107.45% (+/- <0.01%)
/(main)/backoffice/badge/page 43.35 KB 198.62 KB 56.75% (+/- <0.01%)
/(main)/backoffice/layout 570.87 KB 726.13 KB 207.47% (🟢 -0.06%)
/(main)/backoffice/pledges/page 55.54 KB 210.81 KB 60.23% (+/- <0.01%)
/(main)/backoffice/issue/[id]/page 53.27 KB 208.54 KB 59.58% (+/- <0.01%)
/(main)/backoffice/rewards_pending/page 57.37 KB 212.63 KB 60.75% (+/- <0.01%)
/(main)/docs/api/[...endpoint]/page 501.01 KB 656.27 KB 187.51% (🟢 -0.06%)
/(main)/(topbar)/(backer)/purchases/file-downloads/page 174.16 KB 329.43 KB 94.12% (+/- <0.01%)
/(main)/(topbar)/(backer)/purchases/license-keys/page 90.21 KB 245.47 KB 70.14% (+/- <0.01%)
/(main)/(topbar)/(backer)/purchases/products/page 90.27 KB 245.53 KB 70.15% (+/- <0.01%)
/(main)/(topbar)/(backer)/purchases/products/[id]/page 195.19 KB 350.45 KB 100.13% (+/- <0.01%)
/(main)/(topbar)/(backer)/purchases/subscriptions/page 90.19 KB 245.46 KB 70.13% (+/- <0.01%)
/(main)/(topbar)/(backer)/settings/page 263.56 KB 418.82 KB 119.66% (+/- <0.01%)
/(main)/[organization]/portal/(topbar)/orders/[id]/page 195.07 KB 350.34 KB 100.10% (+/- <0.01%)
/(main)/(topbar)/(backer)/purchases/subscriptions/[id]/page 216.17 KB 371.44 KB 106.13% (+/- <0.01%)
/(main)/[organization]/portal/(topbar)/request/page 67.59 KB 222.85 KB 63.67% (+/- <0.01%)
/(main)/[organization]/portal/(topbar)/authenticate/page 71.88 KB 227.15 KB 64.90% (+/- <0.01%)
/(main)/[organization]/portal/(topbar)/subscriptions/[id]/page 213.8 KB 369.07 KB 105.45% (+/- <0.01%)
/(main)/dashboard/(create)/create/page 154.15 KB 309.42 KB 88.40% (🟡 +0.01%)
/(main)/dashboard/[organization]/storefront/page 381 KB 536.27 KB 153.22% (+/- <0.01%)
/(main)/dashboard/[organization]/layout 45.79 KB 201.05 KB 57.44% (🟡 +0.01%)
/(main)/(landing)/(mdx)/blog/(header)/mitchell-hashimoto-joins-polar-as-an-advisor/page 33.53 KB 188.8 KB 53.94% (+/- <0.01%)
/(main)/(landing)/(mdx)/careers/page 33.53 KB 188.8 KB 53.94% (+/- <0.01%)
/(main)/(landing)/(mdx)/legal/terms/page 33.53 KB 188.8 KB 53.94% (+/- <0.01%)
/(main)/docs/(mdx)/layout 500.83 KB 656.1 KB 187.46% (🟢 -0.06%)
/(main)/docs/(mdx)/fees/page 33.53 KB 188.8 KB 53.94% (+/- <0.01%)
/(main)/docs/(mdx)/finance/payouts/page 33.54 KB 188.8 KB 53.94% (🟡 +0.01%)
/(main)/docs/(mdx)/subscriptions/page 33.54 KB 188.8 KB 53.94% (+/- <0.01%)
/(main)/docs/api/(mdx)/page 33.54 KB 188.8 KB 53.94% (+/- <0.01%)
/(main)/docs/api/(mdx)/layout 500.82 KB 656.08 KB 187.45% (🟢 -0.05%)
/(main)/docs/developers/(mdx)/layout 500.82 KB 656.09 KB 187.45% (🟢 -0.05%)
/(main)/docs/developers/guides/layout 500.82 KB 656.09 KB 187.45% (🟢 -0.05%)
/(main)/docs/developers/guides/nextjs/page 34.02 KB 189.29 KB 54.08% (+/- <0.01%)
/(main)/docs/developers/open-source/layout 500.83 KB 656.09 KB 187.46% (🟢 -0.06%)
/(main)/docs/developers/sandbox/layout 500.83 KB 656.09 KB 187.46% (🟢 -0.06%)
/(main)/docs/developers/sdk/layout 500.82 KB 656.08 KB 187.45% (🟢 -0.05%)
/(main)/docs/developers/sdk/polar-init/page 34.02 KB 189.29 KB 54.08% (+/- <0.01%)
/(main)/docs/developers/sdk/polar-migrate/page 33.54 KB 188.8 KB 53.94% (+/- <0.01%)
/(main)/docs/developers/sdk/python/page 33.53 KB 188.8 KB 53.94% (+/- <0.01%)
/(main)/docs/support/(mdx)/page 33.53 KB 188.8 KB 53.94% (+/- <0.01%)
/(main)/docs/support/layout 500.83 KB 656.09 KB 187.46% (🟢 -0.06%)
/(main)/docs/developers/webhooks/layout 501.09 KB 656.36 KB 187.53% (🟢 -0.05%)
/(main)/(topbar)/(backer)/(sidebar)/funding/page 251.12 KB 406.38 KB 116.11% (+/- <0.01%)
/(main)/(topbar)/(backer)/(sidebar)/layout 137.57 KB 292.84 KB 83.67% (+/- <0.01%)
/(main)/(topbar)/(backer)/finance/account/page 201.66 KB 356.92 KB 101.98% (+/- <0.01%)
/(main)/(topbar)/(backer)/finance/layout 213.77 KB 369.04 KB 105.44% (+/- <0.01%)
/(main)/(topbar)/(backer)/finance/incoming/page 236.03 KB 391.3 KB 111.80% (+/- <0.01%)
/(main)/(topbar)/(backer)/finance/outgoing/page 188.09 KB 343.36 KB 98.10% (+/- <0.01%)
/(main)/(topbar)/(backer)/finance/rewards/page 115.77 KB 271.04 KB 77.44% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/(home)/page 670.32 KB 825.59 KB 235.88% (🟢 -0.05%)
/(main)/dashboard/[organization]/(header)/layout 570.86 KB 726.13 KB 207.47% (🟢 -0.06%)
/(main)/dashboard/[organization]/(header)/analytics/page 703.85 KB 859.12 KB 245.46% (🟢 -0.05%)
/(main)/dashboard/[organization]/(header)/customers/page 608.21 KB 763.48 KB 218.14% (🟢 -0.06%)
/(main)/dashboard/[organization]/(header)/benefits/license-keys/page 604.72 KB 759.99 KB 217.14% (🟢 -0.05%)
/(main)/dashboard/[organization]/(header)/benefits/page 671.75 KB 827.02 KB 236.29% (🟢 -0.05%)
/(main)/dashboard/[organization]/(header)/initialize/page 144.08 KB 299.35 KB 85.53% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/issues/organizations/page 573.23 KB 728.5 KB 208.14% (🟢 -0.05%)
/(main)/dashboard/[organization]/(header)/issues/embed/page 573.31 KB 728.58 KB 208.17% (🟢 -0.06%)
/(main)/dashboard/[organization]/(header)/issues/badge/page 597.85 KB 753.12 KB 215.18% (🟢 -0.06%)
/(main)/dashboard/[organization]/(header)/products/[id]/page 666.85 KB 822.11 KB 234.89% (🟢 -0.05%)
/(main)/dashboard/[organization]/(header)/issues/overview/page 612.99 KB 768.25 KB 219.50% (🟢 -0.05%)
/(main)/dashboard/[organization]/(header)/members/page 571.73 KB 726.99 KB 207.71% (🟢 -0.05%)
/(main)/dashboard/[organization]/(header)/products/benefits/page 671.28 KB 826.54 KB 236.16% (🟢 -0.06%)
/(main)/dashboard/[organization]/(header)/products/discounts/page 635.19 KB 790.46 KB 225.85% (🟢 -0.06%)
/(main)/dashboard/[organization]/(header)/products/new/page 658.76 KB 814.03 KB 232.58% (🟢 -0.05%)
/(main)/dashboard/[organization]/(header)/products/page 607.36 KB 762.63 KB 217.89% (🟢 -0.05%)
/(main)/dashboard/[organization]/(header)/sales/page 615.42 KB 770.68 KB 220.20% (🟢 -0.06%)
/(main)/dashboard/[organization]/(header)/sales/[id]/page 583.91 KB 739.17 KB 211.19% (🟢 -0.05%)
/(main)/dashboard/[organization]/(header)/settings/custom-fields/page 610.97 KB 766.24 KB 218.93% (🟢 -0.06%)
/(main)/dashboard/[organization]/(header)/sales/subscriptions/page 609.25 KB 764.52 KB 218.43% (🟢 -0.05%)
/(main)/dashboard/[organization]/(header)/settings/page 590.58 KB 745.84 KB 213.10% (🟢 -0.05%)
/(main)/dashboard/[organization]/(header)/settings/webhooks/endpoints/[id]/page 609.46 KB 764.72 KB 218.49% (🟢 -0.05%)
/(main)/dashboard/[organization]/(header)/settings/webhooks/page 591.48 KB 746.75 KB 213.36% (🟢 -0.06%)
/(main)/dashboard/[organization]/(header)/finance/account/page 149.43 KB 304.7 KB 87.06% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/finance/layout 570.87 KB 726.13 KB 207.47% (🟢 -0.06%)
/(main)/dashboard/[organization]/(header)/finance/incoming/page 184.03 KB 339.3 KB 96.94% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/finance/outgoing/page 136.03 KB 291.3 KB 83.23% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/finance/issue-funding/contributors/page 63.62 KB 218.89 KB 62.54% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/finance/issue-funding/layout 570.87 KB 726.13 KB 207.47% (🟢 -0.06%)
/(main)/dashboard/[organization]/(header)/finance/issue-funding/page 64.33 KB 219.6 KB 62.74% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/finance/issue-funding/rewarded/page 63.62 KB 218.88 KB 62.54% (+/- <0.01%)
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

The "Budget %" column shows what percentage of your performance budget the First Load total takes up. For example, if your budget was 100kb, and a given page's first load size was 10kb, it would be 10% of your budget. You can also see how much this has increased or decreased compared to the base branch of your PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this. If you see "+/- <0.01%" it means that there was a change in bundle size, but it is a trivial enough amount that it can be ignored.

@emilwidlund emilwidlund merged commit 1425ca1 into main Jan 4, 2025
12 of 15 checks passed
@emilwidlund emilwidlund deleted the next-docs branch January 4, 2025 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant