Custom font fine in admin when Vite running hot, but not after npm run build

I made those changes myself and it’s fine in the normal editor.

However, it doesn’t work when previewing block patterns, just as an aside.

In situ, when editing a post containing a block pattern, custom fonts render fine:

But previewing the block pattern elsewhere, the fonts are good old Times New Roman: