deploy(frontend): reduce sampling rate

This commit is contained in:
Michael H.
2026-01-08 19:59:33 +01:00
parent b91d581928
commit ea17534f77

View File

@@ -1,60 +1,60 @@
{ {
"$schema": "node_modules/wrangler/config-schema.json", "$schema": "node_modules/wrangler/config-schema.json",
"name": "frontend", "name": "frontend",
"compatibility_date": "2025-12-10", "compatibility_date": "2025-12-10",
"main": "./.output/server/index.mjs", "main": "./.output/server/index.mjs",
"assets": { "assets": {
"binding": "ASSETS", "binding": "ASSETS",
"directory": "./.output/public/" "directory": "./.output/public/"
}, },
"compatibility_flags": ["nodejs_compat", "no_nodejs_compat_v2"], "compatibility_flags": ["nodejs_compat", "no_nodejs_compat_v2"],
"routes": ["modrinth.com/*"], "routes": ["modrinth.com/*"],
"preview_urls": true, "preview_urls": true,
"workers_dev": true, "workers_dev": true,
"limits": { "limits": {
"cpu_ms": 2000 "cpu_ms": 2000
}, },
"observability": { "observability": {
"enabled": true, "enabled": true,
"head_sampling_rate": 0.001 "head_sampling_rate": 0.0001
}, },
"keep_vars": false, "keep_vars": false,
"secrets_store_secrets": [ "secrets_store_secrets": [
{ {
"binding": "RATE_LIMIT_IGNORE_KEY", "binding": "RATE_LIMIT_IGNORE_KEY",
"store_id": "c9024fef252d4a53adf513feca64417d", "store_id": "c9024fef252d4a53adf513feca64417d",
"secret_name": "labrinth-production-ratelimit-key" "secret_name": "labrinth-production-ratelimit-key"
} }
], ],
"vars": { "vars": {
"ENVIRONMENT": "production", "ENVIRONMENT": "production",
"BASE_URL": "https://api.modrinth.com/v2/", "BASE_URL": "https://api.modrinth.com/v2/",
"BROWSER_BASE_URL": "https://api.modrinth.com/v2/", "BROWSER_BASE_URL": "https://api.modrinth.com/v2/",
"PYRO_BASE_URL": "https://archon.modrinth.com/", "PYRO_BASE_URL": "https://archon.modrinth.com/",
"STRIPE_PUBLISHABLE_KEY": "pk_live_51JbFxJJygY5LJFfKLVVldb10HlLt24p421OWRsTOWc5sXYFOnFUXWieSc6HD3PHo25ktx8db1WcHr36XGFvZFVUz00V9ixrCs5" "STRIPE_PUBLISHABLE_KEY": "pk_live_51JbFxJJygY5LJFfKLVVldb10HlLt24p421OWRsTOWc5sXYFOnFUXWieSc6HD3PHo25ktx8db1WcHr36XGFvZFVUz00V9ixrCs5"
}, },
"env": { "env": {
"staging": { "staging": {
"observability": { "observability": {
"enabled": true, "enabled": true,
"head_sampling_rate": 0.1 "head_sampling_rate": 0.1
}, },
"routes": ["staging.modrinth.com/*"], "routes": ["staging.modrinth.com/*"],
"vars": { "vars": {
"ENVIRONMENT": "staging", "ENVIRONMENT": "staging",
"BASE_URL": "https://staging-api.modrinth.com/v2/", "BASE_URL": "https://staging-api.modrinth.com/v2/",
"BROWSER_BASE_URL": "https://staging-api.modrinth.com/v2/", "BROWSER_BASE_URL": "https://staging-api.modrinth.com/v2/",
"PYRO_BASE_URL": "https://staging-archon.modrinth.com/", "PYRO_BASE_URL": "https://staging-archon.modrinth.com/",
"STRIPE_PUBLISHABLE_KEY": "pk_test_51JbFxJJygY5LJFfKV50mnXzz3YLvBVe2Gd1jn7ljWAkaBlRz3VQdxN9mXcPSrFbSqxwAb0svte9yhnsmm7qHfcWn00R611Ce7b" "STRIPE_PUBLISHABLE_KEY": "pk_test_51JbFxJJygY5LJFfKV50mnXzz3YLvBVe2Gd1jn7ljWAkaBlRz3VQdxN9mXcPSrFbSqxwAb0svte9yhnsmm7qHfcWn00R611Ce7b"
}, },
"secrets_store_secrets": [ "secrets_store_secrets": [
{ {
"binding": "RATE_LIMIT_IGNORE_KEY", "binding": "RATE_LIMIT_IGNORE_KEY",
"store_id": "c9024fef252d4a53adf513feca64417d", "store_id": "c9024fef252d4a53adf513feca64417d",
"secret_name": "labrinth-staging-ratelimit-key" "secret_name": "labrinth-staging-ratelimit-key"
} }
], ],
"preview_urls": true "preview_urls": true
} }
} }
} }