~/talk

NODE_ENV=productionisalie

Talkat HalfStack London Shoreditch 2023 · on Wednesday, 2023-11-15· [javascript]
slides:none on file

Claim: NODE_ENV semantics are broken because countless npm modules use it to toggle server-only code, causing bugs that only reproduce in production. Evidence: origin traced to Connect/Express 2010, bundlers like webpack toggles code via NODE_ENV, and the speaker reports npm packages and incidents widespread across the ecosystem. Recommendation: set NODE_ENV=production on servers and build staging with NODE_ENV=production; use explicit feature flags and validated config tooling (demoed with a PlatformMatic config flow) instead of branching on the env string.

AI-written summary · about

  1. 0:00Introduction
  2. 1:26Misunderstanding NODE_ENV
  3. 3:10Rails influence on NODE_ENV
  4. 5:18NODE_ENV in ecosystem
  5. 7:27Origin of NODE_ENV
  6. 8:51Webpack and bundlers
  7. 10:38Config management
  8. 12:25Long-form content
  9. 13:05Platformatic demo
  10. 16:40Environment variables setup
  11. 17:01Closing and raffle
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.