
@DavidDarnes @chriscoyier @cloudinary @Netlify ...or indeed, @eleven_ty could generate the _redirects file. (Relating this back to @chriscoyier's example )

@DavidDarnes @chriscoyier @cloudinary @Netlify Oooh that's a thought! A build plugin (or just a build script which performed logic based on the CONTEXT environment variable) could generate a couple of lines of _redirect config to do this quite nicely!
https://docs.netlify.com/configure-builds/environment-variables/#build-metadata
https://docs.netlify.com/configure-builds/environment-variables/#build-metadata

@chriscoyier @cloudinary @Netlify Not yet. I personally do similar things to you in using my template logic and an env var to give the right path.
But with if redirects could be per build context in netlify.toml, you could leave the HTML the same and toggle one line in your redirect.
Voting for that feature!
But with if redirects could be per build context in netlify.toml, you could leave the HTML the same and toggle one line in your redirect.
Voting for that feature!

@sunnysinghio @cloudinary Luckily you can give @cloudinary a list of domains which are approved asset sources, so you can safeguard against that.
To test, try specifying a resource from another domain in this:
https://res.cloudinary.com/philhawksworth/image/fetch/q_auto,f_auto,h_200/https://petsof.netlify.app/images/angel.jpg
To test, try specifying a resource from another domain in this:
https://res.cloudinary.com/philhawksworth/image/fetch/q_auto,f_auto,h_200/https://petsof.netlify.app/images/angel.jpg

@chriscoyier @mraerino @cloudinary @Netlify True. The bit I left out for the sake of brevity, is that I also have a custom 404 rule which defaults to the original image url if Cloudinary can't find it.
Working locally with Netlify dev should make this all hum along nicely.
https://github.com/netlify/petsofnetlify/blob/master/netlify.toml#L18-L22
Working locally with Netlify dev should make this all hum along nicely.
https://github.com/netlify/petsofnetlify/blob/master/netlify.toml#L18-L22

With this, I can replace "images" with "cloudinaried" in the URL of any image on my site to serve an optimized version directly form @cloudinary's CDN.
I'l be using this a lot!
First stop: https://github.com/netlify/petsofnetlify
I'l be using this a lot!
First stop: https://github.com/netlify/petsofnetlify

Phil Hawksworth
@philhawksworth •
A nice trick to optimize your site's images without a build process or any library or framework cruft.
1. Upload & serve from @cloudinary in one step thanks to their Fetched URL API
2. Make it portable and simple with a @netlify CDN proxy
URLs FTW!
📚 https://url.netlify.com/r1g4F-x9D
1. Upload & serve from @cloudinary in one step thanks to their Fetched URL API
2. Make it portable and simple with a @netlify CDN proxy
URLs FTW!
📚 https://url.netlify.com/r1g4F-x9D

Phil Hawksworth
@philhawksworth •
I cannot recommend working with @a_alfredo highly enough!
👀 https://twitter.com/a_alfredo/status/1328301257547714565
👀 https://twitter.com/a_alfredo/status/1328301257547714565

Phil Hawksworth
@philhawksworth •
I WON CELEBRITY MASTERCHEF! https://twitter.com/philhawksworth/status/1328296440137965569

Phil Hawksworth
@philhawksworth •
I WON THE NBA FINALS https://twitter.com/realDonaldTrump/status/1328200072987893762

@jlengstorf @SalientKnight @cassidoo @levlinds FWIW this is the exact usecase I had in this example which is framework agnostic. 404s are handled by a servlerless function which attempts to render content on demand.
https://css-tricks.com/static-first-pre-generated-jamstack-sites-with-serverless-rendering-as-a-fallback/
https://css-tricks.com/static-first-pre-generated-jamstack-sites-with-serverless-rendering-as-a-fallback/

@brendandawes Yes. Brilliant telly. Wonderfully produced.

Phil Hawksworth
@philhawksworth •
Mindbogglingly cool! https://twitter.com/mattb/status/1312503931268784130

@jna_sh A lanyard factory

@scottmathson @Netlify @bamboohr A year already?!
a. That's gone so fast.
b. I can't imagine a time without you.
A solid year. Onwards!
a. That's gone so fast.
b. I can't imagine a time without you.
A solid year. Onwards!

@rafahari @DavidDarnes @Ember_Tech @layoutfm If @Ember_Tech sponsored @layoutfm I’d find it impossible to not buy one.

Phil Hawksworth
@philhawksworth •

@lesliecdubs @lettershoppe Oooooh. Happily running headlong down this rabbit hole!

@5t3ph @eleven_ty Ooh. A timely reminder. Signing up and planning popcorn.

Phil Hawksworth
@philhawksworth •
My rather excellent colleague, @lesliecdubs has her name written in this gorgeously flamboyant cursive SVG on her site and it makes me audibly "ooh" and "aaaah" every time I see it.
https://leslie.dev/
https://leslie.dev/

Phil Hawksworth
@philhawksworth •
RT @nimbella: On Nov 23rd, 9am PST: #3HoursOfJamstack will take place. If you're new to the Jamstack or looking to improve your skills, the…