11ty / api-indieweb-avatar

Return an optimized avatar image from a domain name input.
https://v1.indieweb-avatar.11ty.dev/
65 stars 11 forks source link

Add ttl to generated image response, fixes #14 #15

Closed robb-j closed 1 year ago

robb-j commented 1 year ago

I wasn't sure if the fallback image should have it too, if that's not going to change until the next build I guess it doesn't?

I also snuck in a cheeky line to type-hint without TypeScript, I can remove this if you don't want it.

I ran it locally with netlify-cli's dev command and it still generated icons for the 11ty site and my personal one.

netlify[bot] commented 1 year ago

Deploy Preview for eleventy-api-indieweb-avatar ready!

Name Link
Latest commit 275054aaff64c24beb50d04aba6d6bdfa861e45f
Latest deploy log https://app.netlify.com/sites/eleventy-api-indieweb-avatar/deploys/63dacc876450060009a90241
Deploy Preview https://deploy-preview-15--eleventy-api-indieweb-avatar.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

zachleat commented 1 year ago

Great! Thank you! This is shipping to production now!

robb-j commented 1 year ago

There's a little irony in that in making this change it invalidated the cache anyway! 😂

zachleat commented 1 year ago

Feed two birds with one scone!