Looks correct to me.
Assuming node-fetch on the server since fs won’t work client side.
URL and options look correct.