vite #
#vite is the defacto JS bundler now. It contains a useful feature for build-time
configuration using environment variables via import.meta.env
, by which you
can serialize variables that begin with VITE_
.
An obvious outcome is that this is build time only, which means that accessing
runtime configuration via VITE_
variables is useless if you're building
#docker containers to deploy to multiple environments. e.g. a variable called
VITE_API
, where one might set localhost:123
vs. api.domain.com
.
This completely makes sense, but it is a bit of a drag. Call me old-school, but I still think the same artifacts should be deployed across environments, modified by runtime configuration.
trump #
My well of surprise/disappointment/etc is dry-as-a-bone, but I'm still mildly surprised to see the posting optimism about the incoming administration. My primary memory of the last Trump administration is that it ended with Covid, and that Trump dissolved a government function to combat pandemics.