?CloudFlare - `Validating asset` "Pages only supports files up to 25 MiB in size"

Basic T3 / tRPC + Tw + R3F And I do have extensive Asset Images and content.json List, Located within the public folder, But besides that all I have is one basic welcome Page, and one simple THREE Canvas Page.
08:44:04.078 (Static) prerendered as static content
08:44:04.078 ƒ (Dynamic) server-rendered on demand
08:44:04.078
08:44:04.121 Finished
08:44:04.122 Note: No functions dir at /functions found. Skipping.
08:44:04.122 Validating asset output directory
08:44:05.235
08:44:05.347 [ERROR] Error: Pages only supports files up to 25 MiB in size
08:44:05.347
08:44:05.347 cache/webpack/client-production/0.pack is 48.1 MiB in size
08:44:04.078 (Static) prerendered as static content
08:44:04.078 ƒ (Dynamic) server-rendered on demand
08:44:04.078
08:44:04.121 Finished
08:44:04.122 Note: No functions dir at /functions found. Skipping.
08:44:04.122 Validating asset output directory
08:44:05.235
08:44:05.347 [ERROR] Error: Pages only supports files up to 25 MiB in size
08:44:05.347
08:44:05.347 cache/webpack/client-production/0.pack is 48.1 MiB in size
What Can I do?
3 Replies
𝖋𝖔𝖈𝖚𝖘
I've found and tried adding: && rm -rf cache to build command, With no Success, yet. src: https://github.com/cloudflare/workers-sdk/issues/2516#issuecomment-1375546028 Is this directly correlated to my Assets (~15mb)? Because otherwise id have to host them somehow. And the Cheapest Solution I can think of is Self-Hosting Supabase. I was already considering it for Auth and Online Editing, but seems really dumb if its just ~15mb to be the culprit. Only other assumption is THREE/Fiber/Drei is too much to bundle as is. No clue what I can do about that.
Neto
Neto3mo ago
npm
@next/bundle-analyzer
Use webpack-bundle-analyzer in your Next.js project. Latest version: 14.2.12, last published: 2 days ago. Start using @next/bundle-analyzer in your project by running npm i @next/bundle-analyzer. There are 207 other projects in the npm registry using @next/bundle-analyzer.
𝖋𝖔𝖈𝖚𝖘
Honestly easier to just self host
Want results from more Discord servers?
Add your server