Skip to content

Commit

Permalink
Update wrangler.toml and add deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
jhandsCF committed Jun 18, 2024
1 parent db77ab0 commit 0aba374
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "An open-source R2 registry",
"main": "index.ts",
"scripts": {
"deploy": "wrangler publish",
"deploy": "wrangler deploy --minify --env production",
"dev:miniflare": "cross-env NODE_ENV=development wrangler --env dev dev --port 9999 --live-reload",
"typecheck": "tsc",
"test": "cross-env NODE_OPTIONS=--experimental-vm-modules vitest run"
Expand Down
19 changes: 9 additions & 10 deletions wrangler.toml
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
name = "r2-registry"

workers_dev = true
workers_dev = false
main = "./index.ts"
compatibility_date = "2022-04-18"
compatibility_flags = ["streams_enable_constructors"]
compatibility_date = "2024-06-18"
compatibility_flags = []
routes = ["registry.uuid.rocks/*"]

## Production
[env.production]
r2_buckets = [
{ binding = "REGISTRY", bucket_name = "" }
]
r2_buckets = [{ binding = "REGISTRY", bucket_name = "r2-registry" }]

[env.production.vars]
JWT_REGISTRY_TOKENS_PUBLIC_KEY = ""
[vars]
# JWT_REGISTRY_TOKENS_PUBLIC_KEY = ""
USERNAME = "jh"
# PASSWORD= <in secrets>

# Secrets:
# USERNAME/PASSWORD if you want username/password based auth
Expand Down

0 comments on commit 0aba374

Please sign in to comment.