-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexample.wrangler.toml
52 lines (38 loc) · 1.51 KB
/
example.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
#:schema node_modules/wrangler/config-schema.json
name = "bright-mind"
compatibility_date = "2024-12-18"
compatibility_flags = ["nodejs_compat"]
pages_build_output_dir = ".vercel/output/static"
[placement]
mode = "smart"
[vars]
NODE_VERSION="20.0.0" # don't remove
DISABLE_RAG=true
GOOGLE_GENERATIVE_AI_API_KEY = "xxxxxxx"
OPENAI_API_KEY="sk-proj-xxxxxxx"
UPSTASH_VECTOR_REST_URL="https://xxxxxxx.upstash.io"
UPSTASH_VECTOR_REST_TOKEN="ABxxxxxxxxxxxxxxxx"
[[kv_namespaces]]
binding = "XXXXXX_PROJECT_NAME" # eg: HEALTHCARE_AI_KV
id = "e22a7xxxxxxxxxxxxxxxxxxxxxff6"
# Bind a KV Namespace. Use KV as persistent storage for small key-value pairs.
# Docs: https://developers.cloudflare.com/pages/functions/bindings/#kv-namespaces
# KV Example:
# [[kv_namespaces]]
# binding = "MY_KV_NAMESPACE"
# id = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
# To use different bindings for preview and production environments, follow the examples below.
# When using environment-specific overrides for bindings, ALL bindings must be specified on a per-environment basis.
# Docs: https://developers.cloudflare.com/pages/functions/wrangler-configuration#environment-specific-overrides
######## PREVIEW environment config ########
# [env.preview.vars]
# API_KEY = "xyz789"
# [[env.preview.kv_namespaces]]
# binding = "MY_KV_NAMESPACE"
# id = "<PREVIEW_NAMESPACE_ID>"
######## PRODUCTION environment config ########
# [env.production.vars]
# API_KEY = "abc123"
# [[env.production.kv_namespaces]]
# binding = "MY_KV_NAMESPACE"
# id = "<PRODUCTION_NAMESPACE_ID>"