• hawksworx
  • blog
  • speaking
  • about
  • search

Notes - page 201

  • 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 • February 7th 2020 replying to this from @philhawksworth
@adokce @thekitze @zeithq @Netlify Since the context itself is an env var, I often use one build script for all contexts and have conditionals. Like this:

if(process.env.CONTEXT == 'production') {
secret = http://process.env.PROD_KEY;
} else {
secret = http://process.env.DEV_KEY;
}

https://docs.netlify.com/configure-builds/environment-variables/?utm_source=twitter&utm_medium=support-pnh&utm_campaign=devex#build-metadata
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • February 7th 2020 replying to this from @adokce
@adokce @thekitze @zeithq @Netlify Sorry if that was misleading... I mean that you can run different build commands in different contexts, and those build scripts can leverage different env vars. It's not that you can set an env var which is different in different contexts.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • February 7th 2020 replying to this from @thekitze
@thekitze @zeithq @Netlify Contextual builds on @Netlify can help with this. You can run different builds and so pull different env vars according to context:

- production
- branch-deploy
- deploy-preview

Or according to specific branch names.

To the docs! 👉 https://docs.netlify.com/site-deploys/overview/?utm_source=twitter&utm_medium=support-pnh&utm_campaign=devex#deploy-contexts
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • February 7th 2020 replying to this from @chrisbiscardi
@chrisbiscardi @adactio I think this gets more complicated than JS on or off. I've had "just html" go unresponsive on some devices after it was rendered because my device was blocked while it unpacked, parsed and executed a big JS bundle.

Less so on my >$1000 phone and 4G or with JS disabled.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • February 7th 2020 replying to this from @chrisbiscardi
@chrisbiscardi @adactio Yeah. I think it depends on how we use the frameworks not just what the frameworks give us.

Deciding on the baseline from which we'll enhance is key, and depends so much on what experience and capabilities we are building.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • February 7th 2020
RT @eduardoboucas: 📢 If you’re using a headless CMS to feed data into a static site, I’d love to know how you do it.

- Plugins made for y…
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • February 7th 2020 replying to this from @rachelandrew
@rachelandrew Gorgeous!
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • February 7th 2020 replying to this from @philhawksworth
@richhiggins @adactio And I prefer not to think of the baseline/fallback as being something akin to "SEO" markup. But as delivering the baseline of capabilities to all users. That was leads to the widest possible support for people, devices, and conditions by default. (+ that valuable SEO juice too)
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • February 7th 2020 replying to this from @richhiggins
@richhiggins @adactio I've found that providing a fallback shows the best of intentions, but becomes difficult to execute well, and often falls by the wayside over time. Where as planning an approach which enhances from a sensible baseline (the "it depends" moment for each project) was more successful
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • February 7th 2020
This from @adactio captures my own perspective perfectly.

To me, Progressive Enhancement feels as fundamental as spellchecking our content, and I don’t see why we’d discard it.

But misunderstandings about what PE means seem to be on the increase.

https://adactio.com/journal/16404
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • February 6th 2020 replying to this from @kaspi_cz
@kaspi_cz @eleven_ty @Netlify I love this perspective. And eagerly agree.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • February 6th 2020
📣 London calling (for your jamstack proposals) https://twitter.com/Netlify/status/1225481803424829440
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • February 6th 2020
RT @jamstackconf: Calling all JAMstack community! The JAMstack Conf Call for Papers for London is now open!

📣http://bit.ly/londonCFP 📣

W…
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • February 6th 2020 replying to this from @zachleat
@zachleat This is so wonderful.
Huge congratulations! 🥳
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • February 5th 2020 replying to this from @sarah_edo
@sarah_edo @devdevcharlie So great!
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • February 5th 2020
RT @Netlify: Can you believe #JAMuary is over??? We tried to make #JAMbruary happen but @shortdiv had a hard no to that punishable pun. Gue…
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • February 5th 2020 replying to this from @seldo
@seldo I think I've found my next in-flight t-shirt design.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • February 5th 2020 replying to this from @chriscoyier
@chriscoyier @nhoizey @zachleat @Netlify @eleven_ty Easy peasy.
Yes indeedy.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • February 5th 2020 replying to this from @nhoizey
@nhoizey @zachleat @Netlify @eleven_ty @chriscoyier Exactly right.

@Netlify caches all the dependencies declaired in package.json between builds to speed things up. Only reinstalling when package.json changes.

npx doesn’t stash things locally either on your machine or in @Netlify.

To speed builds up - install and run via npm
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • February 5th 2020
RT @Netlify: More from @sarah_edo about generating a site from WordPress content APIs here in this detailed walkthrough.

👉 Headless WordPr…
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • February 5th 2020
RT @ladyleet: So happy to have @BenLesh and @Tzmanics present at Thursday's #Angular Meetup Online!

Haven't RSVP'd to attend yet? Follow…
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • February 4th 2020 replying to this from @dizzyd
@dizzyd I’ll be right there.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • February 4th 2020
RT @MrAhmadAwais: 🔥 For every retweet, I'll donate USD 149 http://VSCode.pro masterclass to students!

Instead of wasting 💰 on market…
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • February 4th 2020
✨YESSSSSS! ✨ https://twitter.com/ItsHumdingers/status/1224801557155401729
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • February 4th 2020 replying to this from @AshlynnPolini
@AshlynnPolini @Netlify SO excited that you're part of the team!
@jamstackconf is going to go from strength to strength!
  • 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.