chore: reduce frontend server memory & tracing (#7014)

* chore: reduce memory usage

* feat: worker tracing

* fix: eslint

* fix: remove compat flag

* fix: prettier
This commit is contained in:
Michael H.
2026-08-05 19:59:15 +02:00
committed by GitHub
parent 0038ea8b15
commit a89711841d
13 changed files with 1014 additions and 433 deletions
+17 -6
View File
@@ -1,13 +1,12 @@
{
"$schema": "node_modules/wrangler/config-schema.json",
"name": "frontend",
"compatibility_date": "2025-12-10",
"compatibility_date": "2026-08-05",
"main": "./.output/server/index.mjs",
"assets": {
"binding": "ASSETS",
"directory": "./.output/public/"
},
"compatibility_flags": ["nodejs_compat_v2"],
"routes": ["modrinth.com/*"],
"preview_urls": true,
"workers_dev": true,
@@ -15,8 +14,14 @@
"cpu_ms": 5000
},
"observability": {
"enabled": true,
"head_sampling_rate": 0.0001
"traces": {
"enabled": true,
"head_sampling_rate": 0.0001
},
"logs": {
"enabled": true,
"head_sampling_rate": 0.0001
}
},
"keep_vars": false,
"secrets_store_secrets": [
@@ -49,8 +54,14 @@
"env": {
"staging": {
"observability": {
"enabled": true,
"head_sampling_rate": 0.1
"traces": {
"enabled": true,
"head_sampling_rate": 0.1
},
"logs": {
"enabled": true,
"head_sampling_rate": 0.1
}
},
"routes": ["staging.modrinth.com/*"],
"vars": {