-
Notifications
You must be signed in to change notification settings - Fork 10
/
wrangler.toml
78 lines (65 loc) 路 1.76 KB
/
wrangler.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# nftstorage.link api wrangler config.
name = "nftstorage-link-api"
main = "./dist/worker.mjs"
compatibility_date = "2022-05-11"
[build]
command = "npm run build"
# PROD!
[env.production]
# name = "nftstorage-link-api-production"
account_id = "fffa4b4363a7e5250af8357087263b3a" # Protocol Labs CF account
route = "api.nftstorage.link/*"
kv_namespaces = [
{ binding = "DENYLIST", id = "785cf627e913468ca5319523ae929def" }
]
[env.production.vars]
DATABASE_URL = "https://nft-link-prod.herokuapp.com"
NFT_STORAGE_API = "https://api.nft.storage"
DEBUG = "false"
ENV = "production"
GATEWAY_DOMAIN = "nftstorage.link"
[[env.production.r2_buckets]]
bucket_name = "super-hot"
binding = "SUPERHOT"
[[env.production.unsafe.bindings]]
name = "GATEWAY"
type = "service"
service = "gateway-nft-storage-production"
environment = "production"
# Staging!
[env.staging]
# name = "nftstorage-link-api-staging"
account_id = "fffa4b4363a7e5250af8357087263b3a" # Protocol Labs CF account
route = "api-staging.nftstorage.link/*"
kv_namespaces = [
{ binding = "DENYLIST", id = "f4eb0eca32e14e28b643604a82e00cb3" }
]
[env.staging.vars]
DATABASE_URL = "https://nft-link-staging.herokuapp.com"
NFT_STORAGE_API = "https://api-staging.nft.storage"
DEBUG = "true"
ENV = "staging"
GATEWAY_DOMAIN = "nftstorage.link"
[[env.staging.r2_buckets]]
bucket_name = "super-hot-staging"
binding = "SUPERHOT"
[[env.staging.unsafe.bindings]]
name = "GATEWAY"
type = "service"
service = "gateway-nft-storage-production"
environment = "production"
# Test!
[env.test]
workers_dev = true
[env.test.vars]
DEBUG = "true"
ENV = "test"
GATEWAY_DOMAIN = "localhost:9081"
# Dev!
[env.vsantos]
workers_dev = true
account_id = "7ec0b7cf2ec201b2580374e53ba5f37b"
[env.vsantos.vars]
DEBUG = "true"
ENV = "test"
GATEWAY_DOMAIN = "nftstorage.link"