From b45fbb12a0878668c2502177076a236d3b7c138f Mon Sep 17 00:00:00 2001
From: weru <fromweru@gmail.com>
Date: Sat, 25 Jul 2026 16:34:04 +0000
Subject: [PATCH] update tina config
---
exampleSite/netlify.toml | 4 ++++
exampleSite/tina/config.ts | 2 +-
2 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/exampleSite/netlify.toml b/exampleSite/netlify.toml
index a20090b..b820fa6 100644
--- a/exampleSite/netlify.toml
+++ b/exampleSite/netlify.toml
@@ -4,6 +4,10 @@
NODE_VERSION = "22.23.1"
URL = "https://composedocs.netlify.app/"
# TZ = "Europe/Oslo"
+# Raise Node's heap for `tinacms build` indexing (default ~2 GB OOMs).
+# Keep this UNDER the build instance's RAM (~3 GB on non-Enterprise) or the
+# kernel OOM-killer fires instead. Raise if your plan has more build memory.
+NODE_OPTIONS = "--max-old-space-size=2560"
[build]
publish = "public"
diff --git a/exampleSite/tina/config.ts b/exampleSite/tina/config.ts
index 6881f45..fe94126 100644
--- a/exampleSite/tina/config.ts
+++ b/exampleSite/tina/config.ts
@@ -38,7 +38,7 @@
indexerToken: process.env.TINA_SEARCH_TOKEN!,
stopwordLanguages: ["deu", "eng", "fra", "ita", "spa", "nld"]
},
- indexBatchSize: 100,
+ indexBatchSize: 25,
maxSearchIndexFieldLength: 100
}
});
--
Gitblit v1.10.0