forked from kriasoft/react-starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwrangler.toml
45 lines (35 loc) · 1.13 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
# Cloudflare Workers configuration
# https://developers.cloudflare.com/workers/wrangler/configuration/
name = "example"
main = "index.js"
# https://developers.cloudflare.com/workers/platform/compatibility-dates/
compatibility_date = "2023-03-14"
send_metrics = false
account_id = "${CLOUDFLARE_ACCOUNT_ID}"
routes = [
{ pattern = "${APP_HOSTNAME}/*", zone_id = "${CLOUDFLARE_ZONE_ID}" }
]
rules = [
{ type = "ESModule", globs = ["dist/*.js"] },
{ type = "Text", globs = ["dist/*.md"], fallthrough = true }
]
[vars]
APP_ENV = "${APP_ENV}"
APP_NAME = "${APP_NAME}"
APP_HOSTNAME = "${APP_HOSTNAME}"
GOOGLE_CLOUD_PROJECT = "${GOOGLE_CLOUD_PROJECT}"
FIREBASE_API_KEY = "${FIREBASE_API_KEY}"
FROM_EMAIL = "${FROM_EMAIL}"
# [secrets]
# GOOGLE_CLOUD_CREDENTIALS
[site]
bucket = "../../app/dist"
[env.test]
name = "example-test"
[env.test.vars]
APP_ENV = "${APP_ENV}"
APP_NAME = "${APP_NAME}"
APP_HOSTNAME = "${APP_HOSTNAME}"
GOOGLE_CLOUD_PROJECT = "${GOOGLE_CLOUD_PROJECT}"
FIREBASE_API_KEY = "${FIREBASE_API_KEY}"
FROM_EMAIL = "${FROM_EMAIL}"