Files
AstralRinth/apps/frontend/wrangler.jsonc
Calum H. 62e56eb27e Worker migration (#5072)
* Worker migration

* Deploy on pnpm changes

* Specify package manager

* Manually bump Wrangler to 4.54

* Get rid of useless Wranglers worker

* I take it back

* Set account ID

* Fix preview alias

* feat: use workers api key

* feat: try fix

* fix: missing imports

* fix: again

* fix: only run push workflow on main or prod

* feat: remove store id?

* Populate secret store IDs

* Use correct key name

* Fix setting PREVIEW variable

* Inject variables from wrangler into shell

* Inject variables from wrangler into shell

* Add git- prefix to preview-alias

* No need to use environments now

* fix: remove test as it's covered by staging deploy

---------

Co-authored-by: Michael H. <michael@iptables.sh>
2026-01-08 16:25:45 +00:00

60 lines
1.7 KiB
JSON

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