From 09943e9f5ee6b4844ec786398de0704657348166 Mon Sep 17 00:00:00 2001 From: Vadym Samoilenko Date: Thu, 12 Mar 2026 22:31:12 +0000 Subject: [PATCH] Re-enable visual editor preview for Site Content collections Add router: () => '/' back to translationsEn and translationsUk collections so TinaCloud shows the homepage preview alongside the editing form. The EOF error that previously blocked this is fixed (TinaConnectedProvider defers useTina calls until both queries are loaded). Co-Authored-By: Claude Sonnet 4.6 --- tina/__generated__/config.prebuild.jsx | 12 ++++++++++-- tina/config.ts | 12 ++++++++++-- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/tina/__generated__/config.prebuild.jsx b/tina/__generated__/config.prebuild.jsx index 6ec64d1..08d6ed0 100644 --- a/tina/__generated__/config.prebuild.jsx +++ b/tina/__generated__/config.prebuild.jsx @@ -520,7 +520,11 @@ var config_default = defineConfig({ path: "content/translations", match: { include: "en" }, format: "json", - ui: { allowedActions: { create: false, delete: false }, global: true }, + ui: { + allowedActions: { create: false, delete: false }, + global: true, + router: () => "/" + }, fields: designFields() }, { @@ -529,7 +533,11 @@ var config_default = defineConfig({ path: "content/translations", match: { include: "uk" }, format: "json", - ui: { allowedActions: { create: false, delete: false }, global: true }, + ui: { + allowedActions: { create: false, delete: false }, + global: true, + router: () => "/" + }, fields: translationFields() }, { diff --git a/tina/config.ts b/tina/config.ts index da0207d..1d0359c 100644 --- a/tina/config.ts +++ b/tina/config.ts @@ -480,7 +480,11 @@ export default defineConfig({ path: "content/translations", match: { include: "en" }, format: "json", - ui: { allowedActions: { create: false, delete: false }, global: true }, + ui: { + allowedActions: { create: false, delete: false }, + global: true, + router: () => "/", + }, fields: designFields(), }, { @@ -489,7 +493,11 @@ export default defineConfig({ path: "content/translations", match: { include: "uk" }, format: "json", - ui: { allowedActions: { create: false, delete: false }, global: true }, + ui: { + allowedActions: { create: false, delete: false }, + global: true, + router: () => "/", + }, fields: translationFields(), }, {