Skip to content

Conversation

vvo
Copy link

@vvo vvo commented Nov 29, 2022

What does this PR do?

Before this commit, datadog-api-client was not compatible with Vercel's Edge Runtime (https://edge-runtime.vercel.app/).

  1. While process exists, process.release doesn't. So changes from Remove node specific checks and unblock running in workers #899 were not complete
  2. I added a few more code to really identify Edge Runtime as a different Node.js (server) environment that can use fetch

Let me know if that's OK.

Additional Notes

n/a

Review checklist

Please check relevant items below:

n/a [ ] This PR includes all newly recorded cassettes for any modified tests

  • This PR does not rely on API client schema changes.
    • The CI should be fully passing.

Before this commit, datadog-api-client was not compatible with Vercel's Edge
Runtime (https://edge-runtime.vercel.app/).

1. While `process` exists, process.release doesn't. So changes from
DataDog#899 were not
complete
2. I added a few more code to really identify Edge Runtime as a different
Node.js (server) environment that can use fetch

Let me know if that's OK.
@vvo vvo requested a review from a team as a code owner November 29, 2022 15:12
@therve
Copy link
Contributor

therve commented Dec 1, 2022

Thanks for your patch. I think we'll try to reduce the number of isNode call instead, and check for process directly. I hope we have something soon.

@vvo
Copy link
Author

vvo commented Dec 2, 2022

@therve do you need me to update that PR? For now, we've used https://pnpm.io/cli/patch to allow us to make progress (and it's working). But ideally this would be done inside this repository 👍

@therve
Copy link
Contributor

therve commented Dec 7, 2022

We tried something in #938 , let us know if that works for you. Thanks.

@therve therve closed this Dec 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants