nuxt-hub / core

Build full-stack applications with Nuxt on CloudFlare, with zero configuration.
https://hub.nuxt.com
Apache License 2.0
993 stars 57 forks source link

[admin] Display total bundle and function size in deployment details #236

Open husayt opened 3 months ago

husayt commented 3 months ago

Is your feature request related to a problem? Please describe. It is very useful to know the size of deployed bundled and function size.

Describe the solution you'd like Will be very useful at the end of logs produced here https://admin.hub.nuxt.com/xxx/yyy/production/deployments/zzz to see final stats and bundle sizes

atinux commented 3 months ago

Actually it is already displayed at the end of the build @husayt

CleanShot 2024-08-21 at 22 05 08@2x

husayt commented 3 months ago

@atinux that is great, but I am not sure what that number is. is it total size for client bundle, server bundle, function/worker size? Also that number is in the middle of the logs.

This is what I get at the end

14:23:57.939 Uploading... (68/143)
14:23:58.555 Uploading... (93/143)
14:23:58.577 Uploading... (118/143)
14:23:58.784 Uploading... (143/143)
14:23:58.784 ✨ Success! Uploaded 75 files (68 already uploaded) (1.42 sec)
14:23:58.784 
14:23:59.298 ✨ Upload complete!
14:24:01.799 Success: Assets published!
14:24:04.712 Success: Your site was deployed!

Would be great to see here final numbers. So that I have an idea about the size of the bundle and the worker. This is what really matters to the app owner. Final stats at the end

Thank you by the way, I come back from time to time to check for updates and it is just getting better.

atinux commented 3 months ago

Sadly the logs you see at the end of the one from Cloudflare itself when uploading your project and we cannot do anything about it...

The number you see is the server bundle, but let me add this as a feature in order to get back those informations and display them in our admin dashboard 🚀