Migrating to 1.1
What changed¶
- Refactored worker to use hono + chanfana
- Dashboard is now served via workers static assets
Updating wrangler¶
Updating wrangler.toml¶
Add this line to the top of your wrangler.toml
file:
assets = { directory = "node_modules/r2-explorer/dashboard", binding = "ASSETS", html_handling = "auto-trailing-slash", not_found_handling = "single-page-application" }
It should look something like this:
name = "r2-explorer"
compatibility_date = "2024-11-06"
main = "src/index.ts"
assets = { directory = "node_modules/r2-explorer/dashboard", binding = "ASSETS", html_handling = "auto-trailing-slash", not_found_handling = "single-page-application" }
# ... buckets bellow this line
Installing the latest version¶
Then proceed to deploy your application: