## What was reported
Issue resend/resend-node#237 (closed, 7 comments): Problem:
My challenge arises from the development environment I am using - Vite with React. Vite doesn't enable the direct use of process.env, which is typically how environment variables are accessed. Instead, it relies on import.meta.env for environment variables.
Error:
While trying to integrate Resend into my Vite React project, I encountered a critical issue. It seems that Resend's dependency files internally use process, which is not recognized within Vite, leading to a "Process is not defined" error. This error effectively blocks the usage of Resend within a Vite project, and as a
## The verified resolution
[zenorocha (maintainer)]: Fixed in v2.1.0. Root cause: the Node SDK referenced `process.env` at module load (e.g. `var baseUrl = process.env.RESEND_BA...` in resend.js), which throws `ReferenceError: process is not defined` on Vite, Cloudflare Pages/Workers, and other edge runtimes without the Node `process` global. Upgrade to resend >= 2.1.0.