-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wrangler.toml
65 lines (50 loc) · 1.62 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
name = "edgefirst-dev-starter"
main = "./worker.ts"
# Update the compatibility date to the date you want to lock to
compatibility_date = "2024-10-11"
# This is needed for AsyncLocalStorage to work
compatibility_flags = ["nodejs_compat"]
# Set the development port to be 3000
dev.port = 3000
# Enable serving static assets from the `./build/client` directory
assets = { directory = "./build/client" }
# Enables the Browser Rendering service
# To use it locally, update the ./scripts/dev.ts file and add `--remote` after
# the `bun start` command
browser = { binding = "BROWSER" }
# To be able to use assets in your Worker, Smart placement needs to be off
[placement]
mode = "off"
# Enable Observability to get logs of your Worker
[observability]
enabled = true
# Configure your D1 database
[[d1_databases]]
binding = "DB"
database_name = "ai-chat"
database_id = "cf734ce6-34d4-45a0-928b-a7e1c8c78993"
migrations_dir = "./db/migrations"
# Configure your KV namespace
[[kv_namespaces]]
binding = "KV"
id = "6a3229e20c6849b5a09b141de2ae2ef0"
# Configure your R2 bucket
[[r2_buckets]]
binding = "FS"
bucket_name = "ai-chat"
# Configure this worker as a queue producer
[[queues.producers]]
queue = "ai-chat"
binding = "QUEUE"
# Configure this worker as a queue consumer
[[queues.consumers]]
queue = "ai-chat"
# Enables the Workers AI service
# Note that using AI on development can incur additional costs as it uses Worker
# cloud resources and not your local machine
[ai]
binding = "AI"
# Note that this will trigger your Worker every minute, increasing your request
# count and potentially incurring additional costs
[triggers]
crons = ["* * * * *"]