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:
Linus Flood
2026-01-27 12:38:36 +00:00
parent a5e214f783
commit 5fc93472f4
193 changed files with 489 additions and 9018 deletions
@@ -1,9 +1,6 @@
import { gql } from "graphql-tag"
import {
CardGallery_DestinationOverviewPage,
CardGallery_DestinationOverviewPageRefs,
} from "../../Fragments/Blocks/CardGallery.graphql"
import { CardGallery_DestinationOverviewPage } from "../../Fragments/Blocks/CardGallery.graphql"
import { System } from "../../Fragments/System.graphql"
export const GetDestinationOverviewPage = gql`
@@ -34,22 +31,6 @@ export const GetDestinationOverviewPage = gql`
${CardGallery_DestinationOverviewPage}
`
export const GetDestinationOverviewPageRefs = gql`
query GetDestinationOverviewPageRefs($locale: String!, $uid: String!) {
destination_overview_page(locale: $locale, uid: $uid) {
blocks {
__typename
...CardGallery_DestinationOverviewPageRefs
}
system {
...System
}
}
}
${System}
${CardGallery_DestinationOverviewPageRefs}
`
export const GetDaDeEnUrlsDestinationOverviewPage = gql`
query GetDaDeEnUrlsDestinationOverviewPage($uid: String!) {
de: destination_overview_page(locale: "de", uid: $uid) {