G4brym / R2-Explorer

A Google Drive Interface for your Cloudflare R2 Buckets!
https://r2explorer.dev
MIT License
327 stars 60 forks source link

Trying to enable access but it throws an error when trying to publish. #17

Closed SohamJa1n closed 1 year ago

SohamJa1n commented 1 year ago
import { R2Explorer } from 'r2-explorer';

const explorer = R2Explorer({ readonly: false, cfAccessTeamName: sohamjain })

export default {
  async fetch(request, env, context) {
    return explorer(request, env, context)
  }
};

This is my index.js file and my team name is sohamjain as going to sohamjain.cloudflareaccess.com works but when doing wranger publish,

aught ReferenceError: sohamjain is not defined
    at index.js:732:88
   [code: 10021]

this is the error i get.

SohamJa1n commented 1 year ago

OMG im sorry, it was a silly mistake, i forgot to put my team name in quotes.