-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwrangler.toml.example
55 lines (45 loc) · 1.47 KB
/
wrangler.toml.example
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
# The name of your Workers application
name = "serverless-social-bot"
# The main entry point for your application
main = "worker.js"
# Compatibility date for Workers runtime features
compatibility_date = "2024-11-06"
# Configure your Workers environment
[vars]
# Example environment variables (DO NOT put actual values here)
MASTODON_API_URL = "https://mastodon.example.com"
MASTODON_ACCESS_TOKEN = "your_mastodon_token"
BLUESKY_API_URL = "https://bsky.social"
BLUESKY_USERNAME = "your.handle.bsky.social"
BLUESKY_PASSWORD = "your_app_password"
DEBUG_MODE = "false"
# Development environment variables
[env.development]
name = "serverless-social-bot-dev"
vars = { DEBUG_MODE = "true", DEBUG_LEVEL = "verbose" }
# Production environment variables
[env.production]
name = "<YOUR_WORKER_NAME>" # UPDATE WITH YOUR WORKER NAME
vars = { DEBUG_MODE = "false", DEBUG_LEVEL = "verbose" }
# Customize the build process if needed
[build]
command = "npm run build --if-present"
watch_dir = "src"
# Configure Workers KV Namespace (if needed)
# kv_namespaces = [
# { binding = "MY_KV", id = "xxx", preview_id = "yyy" }
# ]
# Configure Durable Objects (if needed)
# [durable_objects]
# bindings = [
# { name = "MY_DURABLE_OBJECT", class_name = "MyDurableObject" }
# ]
# Configure Routes (if needed)
# routes = [
# { pattern = "example.com/api/*", zone_id = "your_zone_id" }
# ]
# Configure miniflare for local development
[miniflare]
kv_persist = true
cache_persist = true
durable_objects_persist = true