Torna al portfolio

Giardino digitale

Appunti di lavoro dal laboratorio — pubblicati mentre crescono, non quando sono perfetti.

Le note sono in inglese.

  • Git worktrees + hoisted pnpm: where did my binaries go?

    A git worktree is a fresh checkout — it has your files, not your node_modules. With pnpm's hoisted linker every tool binary lives at the original repo root, so eslint/vitest/next simply don't exist in the worktree.

    GermoglioPiantata 26 giu 2026Ultima cura 19 lug 2026pnpmgitmonorepotooling
  • Never throw at module load in Next.js

    next build imports your modules with production NODE_ENV but none of your runtime env. A top-level throw on a missing env var kills the whole build. Degrade instead.

    In crescitaPiantata 26 giu 2026Ultima cura 19 lug 2026nextjspatternstil
  • Next.js 16: middleware.ts is now proxy.ts

    Next 16 renamed the middleware file convention to proxy.ts. Same API, better name — and a reminder that it should stay a cheap presence check, never your only auth gate.

    In crescitaPiantata 26 giu 2026Ultima cura 19 lug 2026nextjsfrontend
  • An Obsidian vault as a cross-tool AI external brain

    One markdown vault as the shared memory for every AI I work with — coding agents read and write it natively, web chats bridge in via a paste ritual. The rules that keep it from rotting.

    GermoglioPiantata 25 giu 2026Ultima cura 19 lug 2026aiobsidianworkflowmeta
  • Two apps, one Neon database

    Sharing one Postgres between two apps works fine — if you prefix your tables and treat drizzle db:push as a loaded gun. Versioned migrations only.

    In crescitaPiantata 26 giu 2026Ultima cura 19 lug 2026postgresneondrizzlemonorepo
  • Why this garden exists

    Working notes, published while they grow. What this section is and why it exists.

    GermoglioPiantata 13 lug 2026metawriting
  • TIL: Postgres websearch_to_tsquery

    Postgres ships a full-text query parser that understands Google-like syntax out of the box — quoted phrases, OR, and -exclusions — no hand-rolled parser required:

    In crescitaPiantata 29 giu 2026Ultima cura 8 lug 2026postgressearchtil
  • React 19: use() is not a hook

    use() looks like a hook but deliberately breaks the rules of hooks: you can call it inside conditionals and loops. It does two unrelated-looking things with one API:

    In crescitaPiantata 21 giu 2026Ultima cura 2 lug 2026reactfrontend