3 ms·
We recommend using fetch() instead of axios in Bun
- cranberryturkey 2y agoI recommend using fetch anywhere.
- Circlecrypto2 2y agoAgreed
- cranberryturkey 2y agoone time i had to use axios recently becuase it behaved just like curl. i had an api that wouldn't work with fetch.
- Circlecrypto2 2y agoThis is expected as last I checked axios requests aren't supported in the Edge runtime. I've experienced this even on classes I expected to be server-side only.
- skeptrune 2y agoWould you not just always use fetch when you can?