• hawksworx
  • blog
  • speaking
  • about
  • search

Notes - page 179

  • Newest
  • Previous
  • Next
  • Oldest

The archive of what I posted on Twitter, which I now self host due to a lack of trust in Twitter and some other reasons.

I'll soon begin refelcting all my Mastodon posts here too. I'm happier self-hosting or maintaining an archive of my content on URLs that I can own.

There are tools to help you do this too. Such as this one from the makers of Eleventy.

A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • May 4th 2020 replying to this from @zachleat
@zachleat @Netlify 🍿
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • May 4th 2020 replying to this from @stefanjudis
@stefanjudis @Netlify They are so much fun!

I've been experimenting with them quite a bit over the last couple of weeks. I'll write up my process soon, but until then, @Tzmanics is dropping knowledge all over the place!

🧠 👉 https://www.netlify.com/blog/2020/04/30/whats-a-netlify-build-plugin-series-part-1-using-build-plugins/?utm_source=twitter&utm_medium=using-build-plugins-tzm&utm_campaign=devex
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • May 4th 2020 replying to this from @philhawksworth
For example, I used this to enable incremental builds on one of my projects.

https://twitter.com/philhawksworth/status/1256293798969212933
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • May 4th 2020
Currently having fun with @Netlify Build Plugins!

🚀 https://www.netlify.com/build/plugins-beta/?utm_source=twitter&utm_medium=cache-utils-pnh&utm_campaign=devex

Getting access to the cache between build offers some great opportunities!
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • May 4th 2020
Kudos to @timbray for showing that he has the courage of his convictions.

https://www.tbray.org/ongoing/When/202x/2020/04/29/Leaving-Amazon
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • May 4th 2020 replying to this from @jamiemchale
@jamiemchale @Netlify Yeah... I had good success on Friday with incremental builds in an example site I made with @eleven_ty. Thanks to the new access to @Netlify's build cache, you can make this work nicely.

https://twitter.com/philhawksworth/status/1256293798969212933
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • May 4th 2020 replying to this from @richardherbert
@richardherbert Yeah! He was one of my absolute favourites during that era. Utter legend!
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • May 4th 2020 replying to this from @jamiemchale
@jamiemchale @Netlify I suppose that in addition to how often the content might change for each user, it depends somewhat on how many users you might need to service this way.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • May 4th 2020
🏀 Happy next-episodes-of-the-last-dance day, everybody!
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • May 4th 2020 replying to this from @thespite
@thespite ahem, @sarah_edo
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • May 4th 2020 replying to this from @jamiemchale
@jamiemchale @Netlify So, 1 role per user? Sounds like that would mean pages are unique for each user, which is a good use case for authentication/authorisation on the API which populates pages rather than unique pages. A popular pattern and what we do for http://app.netlify.com.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • May 4th 2020
RT @Netlify: Did you know that if you want to enable authentication in a Jamstack app, all you have to do is sing the "Who Am I?" song from…
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • May 4th 2020 replying to this from @cassidoo
@cassidoo If the 6th one wasn’t a question, I think you’ve missed an opportunity.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • May 3rd 2020 replying to this from @csswizardry
@csswizardry @hey_stac Preparation preparation preparation. My view of the production team getting ducks in a row for #AllDayHey this Thursday.

Usually just for those able to get to glorious Yorkshire. This year, anyone can attend!
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • May 2nd 2020 replying to this from @addyosmani
@addyosmani @eleven_ty @sebmck Yeah. I also like that it’s JavaScript all the way down. (But not necessarily all the way to the front)
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • May 2nd 2020 replying to this from @mahemoff
@mahemoff @maplemedia Huge congratulations!!
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • May 2nd 2020 replying to this from @philhawksworth
@X_Qlusive @gerwitz @Netlify And in my example site, I do that here

https://github.com/philhawksworth/virtual-lolly/blob/ed1dd458112eef6902b8522544e20b30b64b27d9/plugins/track-latest/index.js#L52-L57
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • May 2nd 2020 replying to this from @X_Qlusive
@X_Qlusive @gerwitz @Netlify Exactly.

The cache utility of Netlify Build makes that action simple. The logic of when/what to cache is where things might get complex and each use case needs some thought.

Here’s the cache API:

https://github.com/netlify/build/blob/master/packages/cache-utils/README.md
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • May 2nd 2020 replying to this from @BarstoolNewsN
@BarstoolNewsN Or maybe just try a vegetable patch instead of murder and cannibalism.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • May 2nd 2020 replying to this from @gerwitz
@gerwitz @X_Qlusive @Netlify I’m using the @Netlify build environment for this. But you can run that locally which is what I do for development.

https://github.com/netlify/build
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • May 2nd 2020 replying to this from @philhawksworth
@X_Qlusive @gerwitz @Netlify - Builds retrieve previously cached pages and the timestamp of the previous build
- Builds only create new pages for content created after our timestamp

This is made pretty simple because of the content model on this site, and easy access to cache between builds.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • May 2nd 2020 replying to this from @X_Qlusive
@X_Qlusive @gerwitz @Netlify I’ll blog it in detail next week, but in summary:

- Content data comes from an API
- When the site builds it notes the timestamp of the most resent item
- After building, we cache all the API driven pages, and the timestamp of the latest item

...
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • May 1st 2020 replying to this from @X_Qlusive
@X_Qlusive @eleven_ty @Netlify Interesting. What are you using to generate the site?
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • May 1st 2020 replying to this from @gerwitz
@gerwitz @Netlify There isn’t a plugin for this, but all plugins get access to some utilities of which the build cache is one.

You can make and use plugins without publishing them. Which is what I did here. It’s part of the site’s code.

https://github.com/philhawksworth/virtual-lolly/tree/master/plugins/track-latest

I’ll write it up in a blog post.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • May 1st 2020 replying to this from @DavidWells
@DavidWells @Netlify I’m so enjoying the very logical access to such useful utilities which were juuuuust out of reach before Build plugins.

Imagination humming a little now.
Fun!
  • Permalink
  • |
  • Twitter
  • Newest
  • Previous
  • Next
  • Oldest

The source code of this site is available on GitHub and is hosted and updated by Netlify automatically after each code commit

Other than where specified, the content on this site is published under a Creative Commons Attribution 3.0 licence.

Subscribe to a feed of blog posts on this site.