|
1 | 1 | { |
2 | | - "$schema": "node_modules/wrangler/config-schema.json", |
3 | | - "name": "frontend", |
4 | | - "compatibility_date": "2025-12-10", |
5 | | - "main": "./.output/server/index.mjs", |
6 | | - "assets": { |
7 | | - "binding": "ASSETS", |
8 | | - "directory": "./.output/public/" |
9 | | - }, |
10 | | - "compatibility_flags": ["nodejs_compat", "no_nodejs_compat_v2"], |
11 | | - "preview_urls": true, |
| 2 | + "$schema": "node_modules/wrangler/config-schema.json", |
| 3 | + "name": "frontend", |
| 4 | + "compatibility_date": "2025-12-10", |
| 5 | + "main": "./.output/server/index.mjs", |
| 6 | + "assets": { |
| 7 | + "binding": "ASSETS", |
| 8 | + "directory": "./.output/public/" |
| 9 | + }, |
| 10 | + "compatibility_flags": ["nodejs_compat", "no_nodejs_compat_v2"], |
| 11 | + "preview_urls": true, |
12 | 12 | "workers_dev": true, |
13 | | - "limits": { |
14 | | - "cpu_ms": 1000 // something would have to be wrong to exceed this |
15 | | - }, |
16 | | - "observability": { |
17 | | - "enabled": true, |
18 | | - "head_sampling_rate": 0.001 |
19 | | - }, |
20 | | - "keep_vars": false, |
21 | | - "vars": { |
22 | | - "ENVIRONMENT": "production", |
23 | | - "BASE_URL": "https://api.modrinth.com/v2/", |
24 | | - "BROWSER_BASE_URL": "https://api.modrinth.com/v2/", |
25 | | - "PYRO_BASE_URL": "https://archon.modrinth.com/", |
26 | | - "STRIPE_PUBLISHABLE_KEY": "pk_live_51JbFxJJygY5LJFfKLVVldb10HlLt24p421OWRsTOWc5sXYFOnFUXWieSc6HD3PHo25ktx8db1WcHr36XGFvZFVUz00V9ixrCs5" |
27 | | - }, |
28 | | - "env": { |
29 | | - "staging": { |
30 | | - "observability": { |
31 | | - "enabled": true, |
32 | | - "head_sampling_rate": 0.1 |
33 | | - }, |
34 | | - "routes": ["staging.modrinth.com/*"], |
35 | | - "vars": { |
36 | | - "ENVIRONMENT": "staging", |
37 | | - "BASE_URL": "https://staging-api.modrinth.com/v2/", |
38 | | - "BROWSER_BASE_URL": "https://staging-api.modrinth.com/v2/", |
39 | | - "PYRO_BASE_URL": "https://staging-archon.modrinth.com/", |
40 | | - "STRIPE_PUBLISHABLE_KEY": "pk_test_51JbFxJJygY5LJFfKV50mnXzz3YLvBVe2Gd1jn7ljWAkaBlRz3VQdxN9mXcPSrFbSqxwAb0svte9yhnsmm7qHfcWn00R611Ce7b" |
41 | | - }, |
42 | | - "preview_urls": true |
43 | | - }, |
44 | | - } |
| 13 | + "limits": { |
| 14 | + "cpu_ms": 1000 // something would have to be wrong to exceed this |
| 15 | + }, |
| 16 | + "observability": { |
| 17 | + "enabled": true, |
| 18 | + "head_sampling_rate": 0.001 |
| 19 | + }, |
| 20 | + "keep_vars": false, |
| 21 | + "secrets_store_secrets": [ |
| 22 | + { |
| 23 | + "binding": "RATE_LIMIT_KEY_SECRET", |
| 24 | + "store_id": "<STORE_ID>", // TODO: Michael plz provide |
| 25 | + "secret_name": "rate-limit-ignore-key" |
| 26 | + } |
| 27 | + ], |
| 28 | + "vars": { |
| 29 | + "ENVIRONMENT": "production", |
| 30 | + "BASE_URL": "https://api.modrinth.com/v2/", |
| 31 | + "BROWSER_BASE_URL": "https://api.modrinth.com/v2/", |
| 32 | + "PYRO_BASE_URL": "https://archon.modrinth.com/", |
| 33 | + "STRIPE_PUBLISHABLE_KEY": "pk_live_51JbFxJJygY5LJFfKLVVldb10HlLt24p421OWRsTOWc5sXYFOnFUXWieSc6HD3PHo25ktx8db1WcHr36XGFvZFVUz00V9ixrCs5" |
| 34 | + }, |
| 35 | + "env": { |
| 36 | + "staging": { |
| 37 | + "observability": { |
| 38 | + "enabled": true, |
| 39 | + "head_sampling_rate": 0.1 |
| 40 | + }, |
| 41 | + "routes": ["staging.modrinth.com/*"], |
| 42 | + "vars": { |
| 43 | + "ENVIRONMENT": "staging", |
| 44 | + "BASE_URL": "https://staging-api.modrinth.com/v2/", |
| 45 | + "BROWSER_BASE_URL": "https://staging-api.modrinth.com/v2/", |
| 46 | + "PYRO_BASE_URL": "https://staging-archon.modrinth.com/", |
| 47 | + "STRIPE_PUBLISHABLE_KEY": "pk_test_51JbFxJJygY5LJFfKV50mnXzz3YLvBVe2Gd1jn7ljWAkaBlRz3VQdxN9mXcPSrFbSqxwAb0svte9yhnsmm7qHfcWn00R611Ce7b" |
| 48 | + }, |
| 49 | + "preview_urls": true |
| 50 | + } |
| 51 | + } |
45 | 52 | } |
0 commit comments