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

[v3] render mdx page inside dynamic lang route #2644

Closed
wants to merge 7 commits into from
Closed

[v3] render mdx page inside dynamic lang route #2644

wants to merge 7 commits into from

Conversation

dimaMachina
Copy link
Collaborator

No description provided.

@dimaMachina dimaMachina added this to the 3.0 milestone Jan 18, 2024
Copy link

changeset-bot bot commented Jan 18, 2024

🦋 Changeset detected

Latest commit: eed1912

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Jan 18, 2024

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

Name Status Preview Comments Updated (UTC)
nextra-theme-docs-dev ❌ Failed (Inspect) Jan 18, 2024 1:42am
nextra-v2 ❌ Failed (Inspect) Jan 18, 2024 1:42am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
nextra ⬜️ Ignored (Inspect) Visit Preview Jan 18, 2024 1:42am

Copy link
Contributor

📦 Next.js Bundle Analysis for swr-site

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

🎉 Global Bundle Size Decreased

Page Size (compressed)
global 151.45 KB (🟢 -71 B)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

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

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

New Page Added

The following page was added to the bundle from the code in this PR:

Page Size (compressed) First Load % of Budget (350 KB)
/[lang] 10.69 KB 162.14 KB 46.33%

One Hundred Three 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)
/en/about/a-page 8.34 KB 159.79 KB 45.66% (🟡 +0.01%)
/en/about/acknowledgement 8.34 KB 159.8 KB 45.66% (🟡 +0.01%)
/en/about/changelog 9.02 KB 160.47 KB 45.85% (🟡 +0.01%)
/en/about/team 8.39 KB 159.84 KB 45.67% (🟡 +0.01%)
/en/blog 9.13 KB 160.58 KB 45.88% (🟡 +0.01%)
/en/blog/swr-v1 13.63 KB 165.08 KB 47.17% (🟡 +0.01%)
/en/docs/404-500 9.14 KB 160.59 KB 45.88% (🟡 +0.02%)
/en/docs/advanced 8.72 KB 160.17 KB 45.76% (🟡 +0.02%)
/en/docs/advanced/cache 21.13 KB 172.58 KB 49.31% (🟡 +0.01%)
/en/docs/advanced/code-highlighting 9.23 KB 160.68 KB 45.91% (🟡 +0.01%)
/en/docs/advanced/dynamic-markdown-import 10.73 KB 162.18 KB 46.34% (🟡 +0.01%)
/en/docs/advanced/file-name.with.DOTS 8.38 KB 159.83 KB 45.66% (🟡 +0.02%)
/en/docs/advanced/images 8.83 KB 160.28 KB 45.80% (🟡 +0.01%)
/en/docs/advanced/markdown-import 9.53 KB 160.98 KB 45.99% (🟢 -2.03%)
/en/docs/advanced/more/loooooooooooooooooooong-title 8.46 KB 159.91 KB 45.69% (🟡 +0.01%)
/en/docs/advanced/more/tree/one 8.38 KB 159.83 KB 45.67% (🟡 +0.01%)
/en/docs/advanced/more/tree/three 8.35 KB 159.8 KB 45.66% (🟡 +0.01%)
/en/docs/advanced/more/tree/two 8.37 KB 159.82 KB 45.66% (🟡 +0.02%)
/en/docs/advanced/performance 10.75 KB 162.2 KB 46.34% (🟡 +0.02%)
/en/docs/advanced/react-native 10.82 KB 162.27 KB 46.36% (🟡 +0.02%)
/en/docs/advanced/scrollbar-x 13.14 KB 164.59 KB 47.03% (🟡 +0.01%)
/en/docs/arguments 10.17 KB 161.62 KB 46.18% (🟡 +0.01%)
/en/docs/callout 8.99 KB 160.44 KB 45.84% (🟡 +0.01%)
/en/docs/change-log 8.68 KB 160.13 KB 45.75% (🟡 +0.01%)
/en/docs/code-block-without-language 8.48 KB 159.93 KB 45.69% (🟡 +0.02%)
/en/docs/conditional-fetching 9.38 KB 160.83 KB 45.95% (🟡 +0.02%)
/en/docs/custom-header-ids 8.85 KB 160.3 KB 45.80% (🟡 +0.01%)
/en/docs/data-fetching 10.28 KB 161.73 KB 46.21% (🟡 +0.01%)
/en/docs/error-handling 11.1 KB 162.55 KB 46.44% (🟡 +0.02%)
/en/docs/getting-started 22.08 KB 173.53 KB 49.58% (🟡 +0.01%)
/en/docs/global-configuration 9.7 KB 161.15 KB 46.04% (🟡 +0.02%)
/en/docs/middleware 12.04 KB 163.5 KB 46.71% (🟡 +0.02%)
/en/docs/mutation 11.15 KB 162.6 KB 46.46% (🟡 +0.01%)
/en/docs/options 10.65 KB 162.11 KB 46.32% (🟡 +0.01%)
/en/docs/pagination 21.11 KB 172.56 KB 49.30% (🟡 +0.02%)
/en/docs/prefetching 9.86 KB 161.31 KB 46.09% (🟡 +0.01%)
/en/docs/raw-layout 9.07 KB 160.52 KB 45.86% (🟡 +0.02%)
/en/docs/revalidation 15.52 KB 166.97 KB 47.71% (🟡 +0.01%)
/en/docs/suspense 10.35 KB 161.8 KB 46.23% (🟡 +0.01%)
/en/docs/typescript 10.19 KB 161.64 KB 46.18% (🟡 +0.02%)
/en/docs/understanding 16.64 KB 168.1 KB 48.03% (🟡 +0.01%)
/en/docs/with-nextjs 10.54 KB 161.99 KB 46.28% (🟡 +0.02%)
/en/docs/wrap-toc-items 9.16 KB 160.62 KB 45.89% (🟡 +0.01%)
/en/examples/auth 8.61 KB 160.06 KB 45.73% (🟡 +0.01%)
/en/examples/basic 8.61 KB 160.06 KB 45.73% (🟡 +0.01%)
/en/examples/error-handling 8.61 KB 160.06 KB 45.73% (🟡 +0.02%)
/en/examples/full 8.6 KB 160.05 KB 45.73% (🟡 +0.01%)
/en/examples/infinite-loading 8.62 KB 160.08 KB 45.74% (🟡 +0.01%)
/en/examples/ssr 8.62 KB 160.07 KB 45.73% (🟡 +0.02%)
/en/foo 12.46 KB 163.91 KB 46.83% (🟡 +0.02%)
/en/remote/graphql-eslint/[[...slug]] 12.64 KB 164.09 KB 46.88% (🟡 +0.02%)
/en/remote/graphql-yoga/[[...slug]] 12.66 KB 164.11 KB 46.89% (🟡 +0.01%)
/en/test 8.57 KB 160.02 KB 45.72% (🟡 +0.01%)
/es/docs/advanced/file-name.with.DOTS 6.31 KB 157.76 KB 45.07% (🟡 +0.02%)
/es/docs/advanced/performance 8.85 KB 160.3 KB 45.80% (🟡 +0.02%)
/es/docs/arguments 8.17 KB 159.62 KB 45.60% (🟡 +0.02%)
/es/docs/change-log 12.21 KB 163.66 KB 46.76% (🟡 +0.01%)
/es/docs/conditional-fetching 7.37 KB 158.82 KB 45.38% (🟡 +0.01%)
/es/docs/data-fetching 8.21 KB 159.66 KB 45.62% (🟡 +0.01%)
/es/docs/error-handling 9.14 KB 160.59 KB 45.88% (🟡 +0.02%)
/es/docs/getting-started 14.12 KB 165.57 KB 47.31% (🟡 +0.01%)
/es/docs/global-configuration 7.67 KB 159.12 KB 45.46% (🟡 +0.02%)
/es/docs/mutation 9.18 KB 160.63 KB 45.89% (🟡 +0.02%)
/es/docs/options 8.66 KB 160.12 KB 45.75% (🟡 +0.01%)
/es/docs/pagination 19.43 KB 170.88 KB 48.82% (🟡 +0.02%)
/es/docs/prefetching 7.84 KB 159.29 KB 45.51% (🟡 +0.02%)
/es/docs/revalidation 13.57 KB 165.02 KB 47.15% (🟡 +0.01%)
/es/docs/suspense 8.33 KB 159.78 KB 45.65% (🟡 +0.02%)
/es/docs/understanding 14.56 KB 166.01 KB 47.43% (🟡 +0.02%)
/es/docs/with-nextjs 8.56 KB 160.02 KB 45.72% (🟡 +0.02%)
/es/docs/wrap-toc-items 7.12 KB 158.57 KB 45.31% (🟡 +0.01%)
/es/examples/auth 6.52 KB 157.97 KB 45.13% (🟡 +0.02%)
/es/examples/basic 6.52 KB 157.97 KB 45.13% (🟡 +0.02%)
/es/examples/error-handling 6.52 KB 157.98 KB 45.14% (🟡 +0.01%)
/es/examples/infinite-loading 6.53 KB 157.98 KB 45.14% (🟡 +0.01%)
/ru/blog 7.83 KB 159.28 KB 45.51% (🟡 +0.02%)
/ru/blog/swr-v1 13.75 KB 165.2 KB 47.20% (🟡 +0.02%)
/ru/docs/advanced/cache 21.03 KB 172.48 KB 49.28% (🟡 +0.02%)
/ru/docs/advanced/file-name.with.DOTS 7.19 KB 158.65 KB 45.33% (🟡 +0.01%)
/ru/docs/advanced/performance 10.17 KB 161.63 KB 46.18% (🟡 +0.02%)
/ru/docs/advanced/react-native 10.01 KB 161.47 KB 46.13% (🟡 +0.02%)
/ru/docs/arguments 9.18 KB 160.63 KB 45.90% (🟡 +0.01%)
/ru/docs/change-log 13.11 KB 164.56 KB 47.02% (🟡 +0.01%)
/ru/docs/conditional-fetching 8.38 KB 159.83 KB 45.67% (🟡 +0.01%)
/ru/docs/data-fetching 9.24 KB 160.69 KB 45.91% (🟡 +0.02%)
/ru/docs/error-handling 10.44 KB 161.89 KB 46.26% (🟡 +0.01%)
/ru/docs/getting-started 15.56 KB 167.01 KB 47.72% (🟡 +0.02%)
/ru/docs/global-configuration 8.74 KB 160.19 KB 45.77% (🟡 +0.02%)
/ru/docs/middleware 11.56 KB 163.01 KB 46.58% (🟡 +0.01%)
/ru/docs/mutation 10.64 KB 162.09 KB 46.31% (🟡 +0.02%)
/ru/docs/options 10.02 KB 161.48 KB 46.14% (🟡 +0.01%)
/ru/docs/pagination 21.05 KB 172.5 KB 49.29% (🟡 +0.02%)
/ru/docs/prefetching 8.97 KB 160.42 KB 45.83% (🟡 +0.02%)
/ru/docs/revalidation 14.88 KB 166.33 KB 47.52% (🟡 +0.02%)
/ru/docs/suspense 9.45 KB 160.9 KB 45.97% (🟡 +0.02%)
/ru/docs/understanding 15.45 KB 166.9 KB 47.68% (🟡 +0.02%)
/ru/docs/with-nextjs 9.7 KB 161.15 KB 46.04% (🟡 +0.02%)
/ru/docs/wrap-toc-items 8.01 KB 159.46 KB 45.56% (🟡 +0.02%)
/ru/examples/auth 7.4 KB 158.85 KB 45.39% (🟡 +0.01%)
/ru/examples/basic 7.41 KB 158.86 KB 45.39% (🟡 +0.01%)
/ru/examples/error-handling 7.41 KB 158.86 KB 45.39% (🟡 +0.01%)
/ru/examples/infinite-loading 7.42 KB 158.87 KB 45.39% (🟡 +0.02%)
/ru/examples/ssr 7.42 KB 158.87 KB 45.39% (🟡 +0.02%)
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.

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