AllanGalera
04/21/2023, 6:22 AMgot
it works fine locally but when I deploy I get that it needs nodejs_compat
. I tried adding in the UI at settings > function > compatibility flags but didn't work.
When I use fetch it fails locally with a fetch failed
with something about a new ReadableStream()
(will get a more detailed error when I revert to this scenario).
Tell me if there any other necessary information 😁
But the main question is:
What is the proper way to make a http reauest inside a createServerData$
?AllanGalera
04/21/2023, 6:23 AMSkye
04/21/2023, 6:33 AMAllanGalera
04/21/2023, 6:43 AMAllanGalera
04/21/2023, 6:44 AMAllanGalera
04/21/2023, 6:51 AMSkye
04/21/2023, 7:39 AMfetch
and seeing what errors come locally from that - a lot of libraries that wrap fetching will use things like net
and http
node internals, that the workers runtime isn't able to (easily) replicateAllanGalera
04/21/2023, 3:02 PMminiflare
right?Skye
04/21/2023, 3:03 PMwrangler pages dev
I assume?AllanGalera
04/21/2023, 3:05 PMsolid-start-cloudflare-pages
like the doc suggestedAllanGalera
04/21/2023, 3:05 PMSkye
04/21/2023, 3:05 PMAllanGalera
04/21/2023, 3:07 PMSkye
04/21/2023, 3:08 PMSkye
04/21/2023, 3:08 PMAllanGalera
04/21/2023, 3:10 PMBuild directory
🤔AllanGalera
04/21/2023, 3:11 PMAllanGalera
04/21/2023, 3:11 PMAllanGalera
04/21/2023, 3:12 PMAllanGalera
04/21/2023, 3:15 PMSkye
04/21/2023, 3:19 PMAllanGalera
04/21/2023, 3:21 PMAllanGalera
04/21/2023, 3:22 PM