R2-Explorer icon indicating copy to clipboard operation
R2-Explorer copied to clipboard

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

Open SohamJa1n opened this issue 2 years ago • 6 comments

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.

SohamJa1n avatar Sep 20 '23 18:09 SohamJa1n

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

G4brym avatar Sep 20 '23 21:09 G4brym

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

SohamJa1n avatar Sep 21 '23 05:09 SohamJa1n

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

SohamJa1n avatar Sep 21 '23 15:09 SohamJa1n

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?

G4brym avatar Sep 21 '23 17:09 G4brym

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

SohamJa1n avatar Sep 21 '23 19:09 SohamJa1n

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

G4brym avatar Sep 21 '23 21:09 G4brym