Merged in feat/rework-contentstack (pull request #3493)
Feat(SW-3708): refactor contentstack fetching (removing all refs) and cache invalidation * Remove all REFS * Revalidate correct language * PR fixes * PR fixes * Throw when errors from contentstack api Approved-by: Joakim Jäderberg
This commit is contained in:
@@ -31,13 +31,3 @@ export const sysAssetSchema = z.object({
|
||||
.nullish()
|
||||
.transform((val) => (val === "Permanent URL Not Defined!" ? null : val)), // ContentStack returns this string when permanent_url is not defined
|
||||
})
|
||||
|
||||
export const sysAssetRefsSchema = z.object({
|
||||
__typename: z.literal(ContentEnum.blocks.SysAsset),
|
||||
url: z.string().nullish(),
|
||||
permanent_url: z
|
||||
.string()
|
||||
.nullish()
|
||||
.transform((val) => (val === "Permanent URL Not Defined!" ? null : val)), // ContentStack returns this string when permanent_url is not defined
|
||||
system: assetSystemSchema.nullish(),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user