Merged in feature/turbopack (pull request #3117)

Feature/turbopack

* .

* .

* pin import-in-the-middle

* update marker

* revert back to using *.graphql.ts


Approved-by: Linus Flood
This commit is contained in:
Joakim Jäderberg
2025-11-11 09:51:40 +00:00
parent ecb25cf6cd
commit bc5a606289
347 changed files with 12780 additions and 9059 deletions

View File

@@ -1,3 +1,4 @@
import { type DocumentNode } from "graphql"
import { cache } from "react"
import { createCounter } from "@scandic-hotels/common/telemetry"
@@ -64,8 +65,8 @@ import type {
interface BreadcrumbsPageData<T> {
dataKey: keyof T
refQuery: string
query: string
refQuery: string | DocumentNode
query: string | DocumentNode
}
const getBreadcrumbs = cache(async function fetchMemoizedBreadcrumbs<T>(

View File

@@ -28,11 +28,12 @@ import { affix, getCityData, getCountryData } from "./utils"
import type { LanguageSwitcherData } from "@scandic-hotels/common/constants/language"
import type { Lang } from "@scandic-hotels/common/constants/language"
import type { DocumentNode } from "graphql"
import type { RawMetadataSchema } from "./output"
const fetchMetadata = cache(async function fetchMemoizedMetadata<T>(
query: string,
query: string | DocumentNode,
{ uid, lang }: { uid: string; lang: Lang }
) {
const getMetadataCounter = createCounter("trpc.contentstack", "metadata.get")