Closed ollyde closed 3 weeks ago
Hey @ollyde if you runtime doesn't provide a global fetch
implementation you need to pass it to the config()
call.
So you can:
import fetch from 'node-fetch';
fal.config({
credentials: env.falApiKey,
fetch,
});
@drochetti it was simple. The docker container on the node server was using node 16 not 22. The error should just say that instead of being cryptic.
I want to use this on a standard nodejs server, as it should be because of api keys.
I get the error
Your environment does not support fetch. Please provide your own fetch implementation.
I'm using node-fetch.