refinedev / refine

A React Framework for building internal tools, admin panels, dashboards & B2B apps with unmatched flexibility.
https://refine.dev
MIT License
27.72k stars 2.15k forks source link

[FEAT] Support Cloudflare Pages on Free Plan, using NextJS on Refine #6006

Closed jackprogramsjp closed 3 months ago

jackprogramsjp commented 4 months ago

Is your feature request related to a problem? Please describe.

Basically, when you create a refine app, and try to publish it on Cloudflare Pages on Free Plan, you'll get this: Error: Failed to publish your Function. Got error: Your Functions script is over the 1 MiB size limit (workers.api.error.script_too_large)

My CRUD app that uses NextJS and Appwrite does not go over the 1 MiB size limit, so I am not sure if this is more of a Refine app thing?

Describe alternatives you've considered

No response

Additional context

No response

Describe the thing to improve

It seems that the Refine app has a size over 1 MiB after compression, is there a way to minimize this? Especially for a barebones refine project...?

BatuhanW commented 4 months ago

Hey @jackprogramsjp can you analyze your app with bundle analyzer and let us know the results?

BatuhanW commented 3 months ago

Closing this as NextJS app with Appwrite already exceeds the limit alone. Feel free to re-open if needed.