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

Add decap #1652

Merged
merged 24 commits into from
Nov 2, 2024
Merged

Add decap #1652

merged 24 commits into from
Nov 2, 2024

Conversation

ob6160
Copy link
Member

@ob6160 ob6160 commented Apr 16, 2024

What does this change?

  • Adds decap and contentlayer so we can start trialling the idea of blog posts!

resolves #1269

Copy link

vercel bot commented Apr 16, 2024

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

Name Status Preview Updated (UTC)
toiletmap ✅ Ready (Inspect) Visit Preview Nov 2, 2024 5:11pm

Copy link

cypress bot commented Apr 16, 2024

GBPTM    Run #1346

Run Properties:  status check passed Passed #1346  •  git commit 76c4afec4c ℹ️: Merge e12804a8302505ddddd76029685cfde7f57c863d into 356ed95cc2895ff8cca7ce6ac33d...
Project GBPTM
Branch Review refs/pull/1652/merge
Run status status check passed Passed #1346
Run duration 01m 57s
Commit git commit 76c4afec4c ℹ️: Merge e12804a8302505ddddd76029685cfde7f57c863d into 356ed95cc2895ff8cca7ce6ac33d...
Committer Oliver Barnwell
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 63
View all changes introduced in this branch ↗︎

Copy link

📦 Next.js Bundle Analysis for toiletmap

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

🎉 Global Bundle Size Decreased

Page Size (compressed)
global 194.37 KB (🟢 -310 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 (200 KB)
/posts/[slug] 8.38 KB 202.76 KB 101.38%

Fourteen 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 (200 KB)
/ 12.24 KB 206.61 KB 103.30% (🟡 +0.01%)
/500 610 B 194.97 KB 97.48% (+/- <0.01%)
/about 962 B 195.31 KB 97.66% (🟢 -0.67%)
/contact 633 B 194.99 KB 97.50% (🟢 -0.01%)
/explorer 1.07 KB 195.45 KB 97.72% (+/- <0.01%)
/explorer/loos/[id] 16.44 KB 210.81 KB 105.41% (🟡 +0.02%)
/explorer/search 16.79 KB 211.17 KB 105.58% (🟢 -0.02%)
/login 1.52 KB 195.89 KB 97.95% (🟢 -0.01%)
/loos/[id] 20.5 KB 214.88 KB 107.44% (🟡 +0.09%)
/loos/[id]/edit 45.76 KB 240.13 KB 120.07% (🟢 -0.03%)
/loos/[id]/remove 16.08 KB 210.45 KB 105.23% (🟢 -0.02%)
/loos/add 45.25 KB 239.62 KB 119.81% (🟢 -0.02%)
/map 711 B 195.07 KB 97.53% (+/- <0.01%)
/privacy 1.43 KB 195.8 KB 97.90% (+/- <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 10% 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.

@ob6160 ob6160 changed the title Initial implementation of decap Add decap Nov 2, 2024
@ob6160 ob6160 marked this pull request as ready for review November 2, 2024 16:40
@ob6160 ob6160 added the Chromatic starts the Chromatic GitHub action workflow label Nov 2, 2024
@ob6160 ob6160 added Chromatic starts the Chromatic GitHub action workflow and removed Chromatic starts the Chromatic GitHub action workflow labels Nov 2, 2024
@ob6160 ob6160 merged commit 347e4e7 into main Nov 2, 2024
7 of 8 checks passed
@ob6160 ob6160 deleted the ob/decap branch November 2, 2024 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Chromatic starts the Chromatic GitHub action workflow
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a simple CMS for publishing news and articles
1 participant