orangeboi
CDCloudflare Developers
•Created by orangeboi on 4/7/2025 in #pages-help
25MiB bundle size limit with CF Pages
ah figured out how to get --minify to work
all fixed (for now)
61 replies
CDCloudflare Developers
•Created by orangeboi on 4/7/2025 in #pages-help
25MiB bundle size limit with CF Pages
can I combine
wrangler pages functions build --minify
with wrangler pages deploy
remix:vite build
somehow?
or change my deploy pipeline (currently using dashboard) to use wrangler pages functions build --minify
'
for context cloudflare pages build command is npm run build
which is my remix vite:build
command but I just need to use wrangler pages functions build --minify
somehow61 replies
CDCloudflare Developers
•Created by orangeboi on 4/7/2025 in #pages-help
25MiB bundle size limit with CF Pages
I tried using minify in the wrangler.toml but got this
- Configuration file for Pages projects does not support "minify"
61 replies
CDCloudflare Developers
•Created by orangeboi on 4/7/2025 in #pages-help
25MiB bundle size limit with CF Pages
but I don't see a
--minify
option yet61 replies
CDCloudflare Developers
•Created by orangeboi on 4/7/2025 in #pages-help
25MiB bundle size limit with CF Pages
wrangler pages deploy ./build/client
this ^ is my npm run deploy
which I'm assuming is what triggers that bundle size limit error
hmm, it's possible it's also remix vite:build running how it get's built61 replies
CDCloudflare Developers
•Created by orangeboi on 4/7/2025 in #pages-help
25MiB bundle size limit with CF Pages
and the
_workers.bundle
file drops to 16MiB which I'll take as. aquick fix for now61 replies
CDCloudflare Developers
•Created by orangeboi on 4/7/2025 in #pages-help
25MiB bundle size limit with CF Pages
I see I can add a flag for --minify on the command I tried before
npx wrangler pages functions build --compatibility-date 2024-10-24 --compatibility-flags nodejs_compat --minify
61 replies
CDCloudflare Developers
•Created by orangeboi on 4/7/2025 in #pages-help
25MiB bundle size limit with CF Pages
hmm did some experimenting, it doesn't look like the workers_bundle is being minified
61 replies
CDCloudflare Developers
•Created by orangeboi on 4/7/2025 in #pages-help
25MiB bundle size limit with CF Pages
and is there a way to control how it get's bundled?
61 replies
CDCloudflare Developers
•Created by orangeboi on 4/7/2025 in #pages-help
25MiB bundle size limit with CF Pages
ah I see
61 replies
CDCloudflare Developers
•Created by orangeboi on 4/7/2025 in #pages-help
25MiB bundle size limit with CF Pages
is a worker bundle based on the vite bundle?
61 replies
CDCloudflare Developers
•Created by orangeboi on 4/7/2025 in #pages-help
25MiB bundle size limit with CF Pages
hmm and it's still 26MB despite the changes I mentioned at the start, but atleast I have something to figure out here - thanks Walshy 🙏
61 replies
CDCloudflare Developers
•Created by orangeboi on 4/7/2025 in #pages-help
25MiB bundle size limit with CF Pages
oh it's just the file itself
61 replies
CDCloudflare Developers
•Created by orangeboi on 4/7/2025 in #pages-help
25MiB bundle size limit with CF Pages
how can I get the bundle size from this 😅
61 replies
CDCloudflare Developers
•Created by orangeboi on 4/7/2025 in #pages-help
25MiB bundle size limit with CF Pages
ok it built! checking out that _workers.bundle now - thank you!! 🙏
61 replies
CDCloudflare Developers
•Created by orangeboi on 4/7/2025 in #pages-help
25MiB bundle size limit with CF Pages

61 replies
CDCloudflare Developers
•Created by orangeboi on 4/7/2025 in #pages-help
25MiB bundle size limit with CF Pages
trying this but it doesn't seem to be picking up the wrangler.toml settings I have
61 replies
CDCloudflare Developers
•Created by orangeboi on 4/7/2025 in #pages-help
25MiB bundle size limit with CF Pages
oh I think I run this?
npx wrangler pages functions build
61 replies
CDCloudflare Developers
•Created by orangeboi on 4/7/2025 in #pages-help
25MiB bundle size limit with CF Pages
hmm I getting this
✘ [ERROR] Unknown arguments: functions, build
61 replies
CDCloudflare Developers
•Created by orangeboi on 4/7/2025 in #pages-help
25MiB bundle size limit with CF Pages
which is setup with the remix cloudflare pages adapter, ie:
@remix-run/cloudflare-pages
61 replies