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 <noreply@anthropic.com>
This commit is contained in:
Vadym Samoilenko 2026-03-12 22:31:12 +00:00
parent 5d0aaab339
commit 09943e9f5e
2 changed files with 20 additions and 4 deletions

View file

@ -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()
},
{

View file

@ -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(),
},
{