add wrangler.toml [#80]

This commit is contained in:
Brandon Liu
2022-10-19 09:36:12 +08:00
parent ded5333ca2
commit 14c26d15fe
2 changed files with 9 additions and 1 deletions

View File

@@ -12,7 +12,7 @@
"deploy": "wrangler publish", "deploy": "wrangler publish",
"test": "node -r esbuild-runner/register src/index.test.ts", "test": "node -r esbuild-runner/register src/index.test.ts",
"tsc": "tsc --watch", "tsc": "tsc --watch",
"build": "wrangler publish src/index.ts --outdir dist --dry-run" "build": "wrangler publish --outdir dist --dry-run"
}, },
"dependencies": { "dependencies": {
"esbuild-runner": "^2.2.2", "esbuild-runner": "^2.2.2",

View File

@@ -0,0 +1,8 @@
name = "pmtiles-cloudflare"
main = "src/index.ts"
compatibility_date = "2022-10-18"
# Replace the bucket names with your own
r2_buckets = [
{ binding = "BUCKET", preview_bucket_name = "my-bucket-development", bucket_name = "my-bucket-production" }
]