{"id":15824395,"url":"https://github.com/nurodev/astro-4.11-build-size-increase","last_synced_at":"2025-10-16T19:30:28.884Z","repository":{"id":246699826,"uuid":"821872287","full_name":"NuroDev/astro-4.11-build-size-increase","owner":"NuroDev","description":"Reproduction repository showing a small bug in Astro since the release of v4.11","archived":true,"fork":false,"pushed_at":"2024-09-12T02:40:23.000Z","size":198,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"4.11","last_synced_at":"2025-01-30T14:58:29.195Z","etag":null,"topics":["bug","reproduction"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NuroDev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-29T17:23:25.000Z","updated_at":"2024-09-12T10:23:51.000Z","dependencies_parsed_at":"2024-06-29T19:51:12.339Z","dependency_job_id":"6eb3bc16-be69-4044-8a33-afae45ed266a","html_url":"https://github.com/NuroDev/astro-4.11-build-size-increase","commit_stats":null,"previous_names":["nurodev/astro-4.11-build-size-increase"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NuroDev%2Fastro-4.11-build-size-increase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NuroDev%2Fastro-4.11-build-size-increase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NuroDev%2Fastro-4.11-build-size-increase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NuroDev%2Fastro-4.11-build-size-increase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NuroDev","download_url":"https://codeload.github.com/NuroDev/astro-4.11-build-size-increase/tar.gz/refs/heads/4.11","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236742369,"owners_count":19197503,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bug","reproduction"],"created_at":"2024-10-05T08:41:47.735Z","updated_at":"2025-10-16T19:30:28.520Z","avatar_url":"https://github.com/NuroDev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bug Reproduction\n\nThis repository is a minimal reproduction of a bug I noticed since the release of version 4.11+ in `astro`.\n\nA few notes going into this however:\n\n- The bug I primarily noticed when upgrading the repository for my personal site so the unique elements here are matching closely to that.\n- The Cloudflare adapter is used as that is both what is used for my personal site \u0026 the key area where this size increase is causing issues since Cloudflare Pages has a size limit.\n- Satori is added, similar to my personal site, to dynamically generate OpenGraph images for pages.\n\n## Usage\n\nTo see the key differences in size you can clone the repository, install dependencies with `pnpm install` and then run `pnpm build` to see the output.\n\nFor the default branch, `4.11`, which is running `astro` version `4.11.3` the `dist/` output directory is 1.1 megabytes in size.\n\nIf you switch to the `4.10.2` branch however, run `pnpm install` to switch versions and run a new build with `pnpm build`, the `dist/` output directory is 400 kilobytes in size.\n\n## Disk Usage\n\n`4.11`:\n\n```bash\n1.1M └─┬ dist\n1.1M   ├─┬ _worker.js\n1.0M   │ ├─┬ chunks\n740K   │ │ ├── og.png_WpHHH3Va.mjs\n144K   │ │ ├── asm_B01tAiv6.mjs\n 88K   │ │ ├─┬ astro\n 72K   │ │ │ ├── server_BO2VP7fw.mjs\n 16K   │ │ │ └── env-setup_DQkCwUzq.mjs\n 28K   │ │ ├── _@astro-renderers_DdsZeMx4.mjs\n 20K   │ │ ├── _@astrojs-manifest_LFh70i04.mj\n4.0K   │ │ └── index_CDJmnF1l.mjs\n 80K   │ ├── index.js\n 12K   │ ├─┬ pages\n4.0K   │ │ ├── og.png.astro.mjs\n4.0K   │ │ ├── index.astro.mjs\n4.0K   │ │ └── _image.astro.mjs\n4.0K   │ ├── renderers.mjs\n4.0K   │ ├── manifest_vBsjPyow.mjs\n4.0K   │ └── _noop-middleware.mjs\n 24K   ├─┬ _astro\n 12K   │ ├── client.BR24tkAJ.js\n8.0K   │ ├── signals.module.HmMX0rop.js\n4.0K   │ └── client.BmKWqeu1.js\n 12K   ├── og.png\n4.0K   ├── favicon.svg\n4.0K   └── _routes.json\n```\n\n`4.10.2`:\n\n```bash\n420K └─┬ dist\n376K   ├─┬ _worker.js\n252K   │ ├─┬ chunks\n144K   │ │ ├── asm_B01tAiv6.mjs\n 84K   │ │ ├── astro_GQeINQaX.mjs\n8.0K   │ │ ├─┬ pages\n4.0K   │ │ │ ├── index_NGKOfVEC.mjs\n4.0K   │ │ │ └── image-endpoint_nxDOIah1.mjs\n4.0K   │ │ ├── prerender_8tHxMGrz.mjs\n4.0K   │ │ ├── og_XK9wvbH2.mjs\n4.0K   │ │ ├── index_mwIjEo2c.mjs\n4.0K   │ │ └── image-endpoint_RvDj3-CK.mjs\n 80K   │ ├── index.js\n 20K   │ ├── renderers.mjs\n 20K   │ ├── manifest_BsOtgiX8.mjs\n4.0K   │ └── _noop-middleware.mjs\n 24K   ├─┬ _astro\n 12K   │ ├── client.BR24tkAJ.js\n8.0K   │ ├── signals.module.HmMX0rop.js\n4.0K   │ └── client.BmKWqeu1.js\n 12K   ├── og.png\n4.0K   ├── favicon.svg\n4.0K   └── _routes.json\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnurodev%2Fastro-4.11-build-size-increase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnurodev%2Fastro-4.11-build-size-increase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnurodev%2Fastro-4.11-build-size-increase/lists"}