Everything is working as expected in development but production builds fail with this error message;
Error: Failed to publish your Function. Got error: Uncaught Error: Some functionality, such as asynchronous I/O, timeouts, and generating random values, can only be performed while handling a request. at worker.mjs:26191:14 in c at worker.mjs:26181:187 in v at worker.mjs:26192:16 in wake at worker.mjs:26209:20 in C7 at worker.mjs:26112:7 in T61 at worker.mjs:26991:12 at worker.mjs:26990:5 in registerPlugin at worker.mjs:27495:4
When I remove the gsap import statement build will resume as normal.
Has anyone experienced this issue while using Cloudflare pages?