chore: update wrangler and next config (#3058)

This commit is contained in:
Huang Xin
2026-01-24 14:36:04 +01:00
committed by GitHub
parent 51b0b8483f
commit 45e57c3943
2 changed files with 23 additions and 4 deletions
-3
View File
@@ -26,9 +26,6 @@ const nextConfig = {
// Configure assetPrefix or else the server won't properly resolve your assets.
assetPrefix: '',
reactStrictMode: true,
experimental: {
cpus: 2,
},
serverExternalPackages: ['isows'],
turbopack: {
resolveAlias: {
+23 -1
View File
@@ -2,10 +2,32 @@ name = "readest-web"
main = ".open-next/worker.js"
compatibility_date = "2025-11-17"
compatibility_flags = ["nodejs_compat"]
workers_dev = true
preview_urls = true
[[routes]]
pattern = "web-cf.readest.com"
zone_name = "readest.com"
custom_domain = true
[[routes]]
pattern = "api-cf.readest.com"
zone_name = "readest.com"
custom_domain = true
[[routes]]
pattern = "web.readest.com"
zone_name = "readest.com"
custom_domain = true
[vars]
PNPM_VERSION = "10.28.1"
[observability]
enabled = true
head_sampling_rate = 0.01
logs = { head_sampling_rate = 0.01 }
traces = { head_sampling_rate = 0.01 }
[assets]
directory = ".open-next/assets"
@@ -13,7 +35,7 @@ binding = "ASSETS"
[[kv_namespaces]]
binding = "TRANSLATIONS_KV"
id = "${TRANSLATIONS_KV_ID}"
id = "fa6e3eb1988a424bbf3c952e01650ced"
[[r2_buckets]]
binding = "NEXT_INC_CACHE_R2_BUCKET"