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

Using dashboardUrl does not function properly

Open audiovention opened this issue 1 year ago • 5 comments

I followed the instructions and deployed packages/dashboard in my cloudflare pages. The initial page loads fine, but navigating is impossible as the routing doesn't function properly when dashboardUrl is specified, i.e. requests like mysub.mydomain.com/storage/bucket-name return 404

audiovention avatar Nov 10 '23 14:11 audiovention

Can you share the url for your instance in read only

G4brym avatar Nov 10 '23 15:11 G4brym

No, sorry. Already moved it behind zero trust. The steps to reproduce are absolutely minimal.

  • npm create r2-explorer@latest and deploy
  • fork and create Cloudflare page for packages/dashboard (pointing to the master branch - maybe that's a problem, should I use the latest release tag?)
  • change dashboardUrl to the cloudflare page url and re-deploy worker

audiovention avatar Nov 10 '23 18:11 audiovention

Oh and btw, I've temporarily removed the dashboardUrl option (so I'm using the default public frontend) and everything is working fine.

audiovention avatar Nov 10 '23 18:11 audiovention

I've just setup everything on a new account and it is working fine when you enable the dashboardUrl, do you see any buckets on the sidebar? can you confirm the r2-explorer version you are using by accessing this path in your worker domain /api/server/config

G4brym avatar Nov 15 '23 19:11 G4brym

Figured out my issue, when I deployed to cloudflare pages I didn't have a build step, so I was just uploading the Vue source. Maybe consider adjusting the docs about that, it's not obvious for non-web people.

audiovention avatar Nov 28 '23 12:11 audiovention