deploy(frontend): add production route

This commit is contained in:
Michael H.
2026-01-08 19:55:52 +01:00
parent 4f6cb7f26c
commit b91d581928

View File

@@ -1,59 +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"],
"preview_urls": true, "routes": ["modrinth.com/*"],
"workers_dev": true, "preview_urls": true,
"limits": { "workers_dev": true,
"cpu_ms": 2000 "limits": {
}, "cpu_ms": 2000
"observability": { },
"enabled": true, "observability": {
"head_sampling_rate": 0.001 "enabled": true,
}, "head_sampling_rate": 0.001
"keep_vars": false, },
"secrets_store_secrets": [ "keep_vars": false,
{ "secrets_store_secrets": [
"binding": "RATE_LIMIT_IGNORE_KEY", {
"store_id": "c9024fef252d4a53adf513feca64417d", "binding": "RATE_LIMIT_IGNORE_KEY",
"secret_name": "labrinth-production-ratelimit-key" "store_id": "c9024fef252d4a53adf513feca64417d",
} "secret_name": "labrinth-production-ratelimit-key"
], }
"vars": { ],
"ENVIRONMENT": "production", "vars": {
"BASE_URL": "https://api.modrinth.com/v2/", "ENVIRONMENT": "production",
"BROWSER_BASE_URL": "https://api.modrinth.com/v2/", "BASE_URL": "https://api.modrinth.com/v2/",
"PYRO_BASE_URL": "https://archon.modrinth.com/", "BROWSER_BASE_URL": "https://api.modrinth.com/v2/",
"STRIPE_PUBLISHABLE_KEY": "pk_live_51JbFxJJygY5LJFfKLVVldb10HlLt24p421OWRsTOWc5sXYFOnFUXWieSc6HD3PHo25ktx8db1WcHr36XGFvZFVUz00V9ixrCs5" "PYRO_BASE_URL": "https://archon.modrinth.com/",
}, "STRIPE_PUBLISHABLE_KEY": "pk_live_51JbFxJJygY5LJFfKLVVldb10HlLt24p421OWRsTOWc5sXYFOnFUXWieSc6HD3PHo25ktx8db1WcHr36XGFvZFVUz00V9ixrCs5"
"env": { },
"staging": { "env": {
"observability": { "staging": {
"enabled": true, "observability": {
"head_sampling_rate": 0.1 "enabled": true,
}, "head_sampling_rate": 0.1
"routes": ["staging.modrinth.com/*"], },
"vars": { "routes": ["staging.modrinth.com/*"],
"ENVIRONMENT": "staging", "vars": {
"BASE_URL": "https://staging-api.modrinth.com/v2/", "ENVIRONMENT": "staging",
"BROWSER_BASE_URL": "https://staging-api.modrinth.com/v2/", "BASE_URL": "https://staging-api.modrinth.com/v2/",
"PYRO_BASE_URL": "https://staging-archon.modrinth.com/", "BROWSER_BASE_URL": "https://staging-api.modrinth.com/v2/",
"STRIPE_PUBLISHABLE_KEY": "pk_test_51JbFxJJygY5LJFfKV50mnXzz3YLvBVe2Gd1jn7ljWAkaBlRz3VQdxN9mXcPSrFbSqxwAb0svte9yhnsmm7qHfcWn00R611Ce7b" "PYRO_BASE_URL": "https://staging-archon.modrinth.com/",
}, "STRIPE_PUBLISHABLE_KEY": "pk_test_51JbFxJJygY5LJFfKV50mnXzz3YLvBVe2Gd1jn7ljWAkaBlRz3VQdxN9mXcPSrFbSqxwAb0svte9yhnsmm7qHfcWn00R611Ce7b"
"secrets_store_secrets": [ },
{ "secrets_store_secrets": [
"binding": "RATE_LIMIT_IGNORE_KEY", {
"store_id": "c9024fef252d4a53adf513feca64417d", "binding": "RATE_LIMIT_IGNORE_KEY",
"secret_name": "labrinth-staging-ratelimit-key" "store_id": "c9024fef252d4a53adf513feca64417d",
} "secret_name": "labrinth-staging-ratelimit-key"
], }
"preview_urls": true ],
} "preview_urls": true
} }
}
} }