Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update templates and github action for next release :D #74

Merged
merged 1 commit into from
Dec 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/github-action/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.1",
"private": true,
"devDependencies": {
"wrangler": "^3.6.0"
"wrangler": "^3.95.0"
},
"scripts": {
"publish": "wrangler publish"
Expand Down
5 changes: 3 additions & 2 deletions packages/github-action/prepareDeploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ if (!R2EXPLORER_CONFIG) {

let wranglerConfig = `
name = "${R2EXPLORER_WORKER_NAME}"
compatibility_date = "2023-05-12"
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" }
`;

if (R2EXPLORER_DOMAIN) {
Expand All @@ -57,7 +58,7 @@ for (const bucket of R2EXPLORER_BUCKETS.split("\n")) {
const split = bucket.trim().split(":");
if (split.length !== 2) {
console.error("R2EXPLORER_BUCKETS is not set correctly!");
console.error(`"${split}" is not in the correct format`);
console.error(`"${split}" is not in the correct format => ALIAS:BUCKET_NAME`);
process.exit(1);
}

Expand Down
142 changes: 140 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"start": "wrangler dev"
},
"dependencies": {
"r2-explorer": "^1.0.7"
"r2-explorer": "^1.1.0"
},
"devDependencies": {
"wrangler": "^3.91.0"
"wrangler": "^3.95.0"
}
}
3 changes: 2 additions & 1 deletion template/wrangler.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name = "r2-explorer"
compatibility_date = "2024-11-06"
main = "src/index.ts"
compatibility_date = "2024-12-01"
assets = { directory = "node_modules/r2-explorer/dashboard", binding = "ASSETS", html_handling = "auto-trailing-slash", not_found_handling = "single-page-application" }

# Bind R2 Buckets to your application.
# Docs: https://r2explorer.dev/getting-started/add-r2-buckets/
Expand Down
Loading