From 45e57c3943eada5c65dc602e85f07abbb46e8cdb Mon Sep 17 00:00:00 2001 From: Huang Xin Date: Sat, 24 Jan 2026 14:36:04 +0100 Subject: [PATCH] chore: update wrangler and next config (#3058) --- apps/readest-app/next.config.mjs | 3 --- apps/readest-app/wrangler.toml | 24 +++++++++++++++++++++++- 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/apps/readest-app/next.config.mjs b/apps/readest-app/next.config.mjs index e4aff84e..e1085f2f 100644 --- a/apps/readest-app/next.config.mjs +++ b/apps/readest-app/next.config.mjs @@ -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: { diff --git a/apps/readest-app/wrangler.toml b/apps/readest-app/wrangler.toml index b7280071..8423768a 100644 --- a/apps/readest-app/wrangler.toml +++ b/apps/readest-app/wrangler.toml @@ -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"