G4brym / R2-Explorer

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

Migrated from 0.x to 1.x and dashboard not loading. #40

Open SohamJa1n opened 1 year ago

SohamJa1n commented 1 year ago

I read in the new docs that the dashboard has been bundled separately as a pages project however I'm not sure how to deploy the pages project as it isn't showing up in my pages dashboard nor is the worker route working.

G4brym commented 1 year ago

For anyone wanting to deploy their own Pages project, all you need to do is to Fork the github repo, and create a new Cloudflare Pages project connected to your own Git repository and set the Root directory to packages/dashboard, then in your R2Explorer() configuration define the dashboardUrl setting to the url of your new project (ex: https://demo.r2explorer.dev).

Hey @SohamJa1n, as the guide says, you need to fork this repository first, and from what i can see on your public repositories, you didn't do this step. After this you need to go to the Cloudflare dashboard and create a new project, by connecting the your ned github repository

SohamJa1n commented 1 year ago

Ahhh ok I thought it would happen automatically for some reason. Will do this

SohamJa1n commented 1 year ago

Hmm, i did this and it just shows a white page. Any ideas? @G4brym

G4brym commented 1 year ago

you need to provide more information for me to be able to help have you defined the dashboardUrl flag pointing to your newly created pages project url?

SohamJa1n commented 1 year ago

Yes it is, should it be my pages.dev or custom domain?

image
G4brym commented 1 year ago

the host https://share.sohamjain.co.uk/appears to be a custom domain of a R2 bucket, and not a custom domain of a Pages project Try the pages.dev domain