|
1 | | -name = "apis-guru-workers" |
| 1 | +name = "apis-guru" |
2 | 2 | compatibility_date = "2025-07-01" |
3 | 3 | compatibility_flags = ["nodejs_compat"] |
4 | 4 |
|
5 | | -# Environment configuration for Pages Functions |
6 | | -pages_build_output_dir = "out" |
| 5 | +main = "./out/_worker.js" |
| 6 | + |
| 7 | +[assets] |
| 8 | +directory = "./out" |
| 9 | +binding = "ASSETS" |
7 | 10 |
|
8 | | -# D1 Database binding (default, used for local development) |
9 | 11 | [[d1_databases]] |
10 | 12 | binding = "DB" |
11 | 13 | database_name = "apis-guru-data-dev" |
12 | 14 | database_id = "1090248d-84f7-4ffe-ab4f-5fd27c98d3e0" |
13 | 15 | migrations_dir = "migrations" |
14 | 16 |
|
15 | | -# Production D1 Database binding (for direct CLI access) |
16 | 17 | [[d1_databases]] |
17 | 18 | binding = "PROD_DB" |
18 | 19 | database_name = "apis-guru-data" |
19 | 20 | database_id = "660cdfd3-7c06-44ea-8e6d-f658f4fc39ca" |
20 | 21 | migrations_dir = "migrations" |
21 | 22 |
|
22 | | - |
23 | | -# Environment variables (default) |
24 | 23 | [vars] |
25 | 24 | SYNC_URL = "https://api.apis.guru/v2/list.json" |
26 | 25 | BATCH_SIZE = "100" |
27 | 26 | MAX_PAGE_SIZE = "100" |
28 | 27 | DEFAULT_PAGE_SIZE = "20" |
29 | | -SENTRY_DSN="https://8296abef723d97e7b8d5a15d1e93be1f@o4509816683823104.ingest.us.sentry.io/4509831375683584" |
| 28 | +SENTRY_DSN = "https://8296abef723d97e7b8d5a15d1e93be1f@o4509816683823104.ingest.us.sentry.io/4509831375683584" |
30 | 29 |
|
31 | | -# Preview configuration (development/staging) |
32 | 30 | [env.preview] |
| 31 | + |
33 | 32 | [[env.preview.d1_databases]] |
34 | 33 | binding = "DB" |
35 | 34 | database_name = "apis-guru-data-dev" |
36 | 35 | database_id = "1090248d-84f7-4ffe-ab4f-5fd27c98d3e0" |
37 | 36 | migrations_dir = "migrations" |
| 37 | + |
38 | 38 | [env.preview.vars] |
39 | 39 | SYNC_URL = "https://api.apis.guru/v2/list.json" |
40 | 40 | BATCH_SIZE = "100" |
41 | 41 | MAX_PAGE_SIZE = "100" |
42 | 42 | DEFAULT_PAGE_SIZE = "20" |
43 | 43 |
|
44 | | -# Production configuration |
45 | 44 | [env.production] |
| 45 | + |
46 | 46 | [[env.production.d1_databases]] |
47 | 47 | binding = "DB" |
48 | 48 | database_name = "apis-guru-data" |
49 | 49 | database_id = "660cdfd3-7c06-44ea-8e6d-f658f4fc39ca" |
50 | 50 | migrations_dir = "migrations" |
| 51 | + |
51 | 52 | [env.production.vars] |
52 | 53 | SYNC_URL = "https://api.apis.guru/v2/list.json" |
53 | 54 | BATCH_SIZE = "100" |
54 | 55 | MAX_PAGE_SIZE = "100" |
55 | 56 | DEFAULT_PAGE_SIZE = "20" |
56 | | - |
0 commit comments