Skip to content

Migrating to 1.1

What changed

Updating wrangler

npm install --save wrangler@latest

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

npm install r2-explorer@latest --save

Then proceed to deploy your application:

wrangler deploy