fix(SW-663): Fixed caching issue by using new GraphQLClient for each request
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user