Minimal standalone script that reproduces the exact crash without Gatsby or a deploy target.
mkdir gatsby-ssr-node24-repro && cd gatsby-ssr-node24-repro
npm init -y
npm install fs-extra@11 linkfs@2
nvm install 24 && nvm use 24Add repro.js and run: