nuxt-hub / core

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

Add a custom images to project in admin #132

Open Barbapapazes opened 1 month ago

Barbapapazes commented 1 month ago

Hello 👋,

There is no banner image for my projet since weeks (and I don't know why) and even if a screenshot could be a good idea, I have some project that first prompt for HTTP username and password so the screen is empty.

Could you add the ability to add a custom banner image?

Screenshot 2024-06-03 at 20 33 57
Atinux commented 1 month ago

I guess we could read the OG Image if available from it, what do you think?

But most of the time, the project should not be protected with basic auth, so it's a very rare case I believe.

Barbapapazes commented 1 month ago

oh yes, reading the OG image is a good idea. And how does this thumbnail currently works ?

Atinux commented 1 month ago

The issue with OG Image is that if you have a basic auth it won't be able to read it anyway.

We have a Cloudflare worker taking a screenshot of your website and saving it to our R2, we will write an article about it once we move this worker to a full NuxtHub app 😊

Barbapapazes commented 1 month ago

I was wondering why Orion (not behind HTTP auth) does not have a screenshot and I imagine that this worker only run at the first deployment?

Atinux commented 1 month ago

It run on reach deployment actually so if you deploy again on the production env you should have a screenshot