fix(SW-663): Fixed caching issue by using new GraphQLClient for each request

This commit is contained in:
Erik Tiekstra
2024-11-06 12:40:57 +01:00
parent ae43ab440d
commit 0465f8e450
4 changed files with 27 additions and 32 deletions

View File

@@ -5,7 +5,6 @@ import HotelPage from "@/components/ContentType/HotelPage"
import LoyaltyPage from "@/components/ContentType/LoyaltyPage"
import CollectionPage from "@/components/ContentType/StaticPages/CollectionPage"
import ContentPage from "@/components/ContentType/StaticPages/ContentPage"
import LoadingSpinner from "@/components/LoadingSpinner"
import { setLang } from "@/i18n/serverContext"
import type {
@@ -25,7 +24,7 @@ export default async function PreviewPage({
ContentstackLivePreview.setConfigFromParams(searchParams)
if (!searchParams.live_preview) {
return <LoadingSpinner />
return notFound()
}
switch (params.contentType) {