This also swaps out superstatic for vite preview for local testing of the prod build. Drops a unnecessary dependency, but no functional change.
I will have to alter the functions directory on Netlify, as we're no longer building them into dist/ (as we don't need to -- Netlify should natively support everything we're using now), so they won't work in the preview. I'll need to set that right before merging.
Middleware impl mostly from @marvinhagemeister in https://github.com/preactjs/preact-www/commit/d2948f046085eff081497208b37093a110d30b0f
This also swaps out
superstatic
forvite preview
for local testing of the prod build. Drops a unnecessary dependency, but no functional change.I will have to alter the functions directory on Netlify, as we're no longer building them into
dist/
(as we don't need to -- Netlify should natively support everything we're using now), so they won't work in the preview. I'll need to set that right before merging.