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:
parent
5d0aaab339
commit
09943e9f5e
2 changed files with 20 additions and 4 deletions
12
tina/__generated__/config.prebuild.jsx
generated
12
tina/__generated__/config.prebuild.jsx
generated
|
|
@ -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()
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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(),
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue