core icon indicating copy to clipboard operation
core copied to clipboard

Add a custom images to project in admin

Open Barbapapazes opened this issue 1 year ago • 10 comments

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

Barbapapazes avatar Jun 03 '24 18:06 Barbapapazes

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.

atinux avatar Jun 03 '24 19:06 atinux

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

Barbapapazes avatar Jun 04 '24 04:06 Barbapapazes

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 😊

atinux avatar Jun 04 '24 09:06 atinux

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?

Barbapapazes avatar Jun 04 '24 10:06 Barbapapazes

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

atinux avatar Jun 04 '24 10:06 atinux

Do you have a screenshot now?

atinux avatar Sep 04 '24 10:09 atinux

nop, still missing for this one

Screenshot 2024-10-03 at 12 24 02

Barbapapazes avatar Oct 03 '24 10:10 Barbapapazes

Even after a new deploy?

atinux avatar Oct 03 '24 12:10 atinux

Ah, I'll try

Barbapapazes avatar Oct 03 '24 13:10 Barbapapazes

Do I have to make a new commit or can I just redeploy the last deploy? I try a redeploy but it does not seems to work.

Barbapapazes avatar Oct 03 '24 14:10 Barbapapazes