glucinaterG
Convex Community9mo ago
10 replies
glucinater

R2 component shows missing env variables despite being set

I'm trying to use the R2 Component but am getting the folliwing error despite having set the requried variables in my dev env:

```✖ Error fetching POST https://fortunate-jay-356.convex.cloud/api/deploy2/start_push 400 Bad Request: InvalidModules: Hit an error while pushing:
Loading the pushed modules encountered the following
error:
Failed to analyze files.js: Uncaught Error: R2 configuration is missing required fields.
R2_BUCKET, R2_ENDPOINT, R2_ACCESS_KEY_ID, R2_SECRET_ACCESS_KEY
at new R2 (../node_modules/@convex-dev/r2/src/client/index.ts:119:74)
at <anonymous> (../convex/files.ts:7:15)
Was this page helpful?