diff --git a/.env.local.example b/.env.local.example index 9ea6c3014..0592f3b4a 100644 --- a/.env.local.example +++ b/.env.local.example @@ -2,5 +2,5 @@ CMS_ACCESS_TOKEN="" CMS_API_KEY="" CMS_ENVIRONMENT="development" CMS_URL="https://eu-graphql.contentstack.com/stacks/${CMS_API_KEY}?environment=${CMS_ENVIRONMENT}" -CMS_PREVIEW_URL="graphql-preview.contentstack.com/stacks/${CMS_API_KEY}?environment=${CMS_ENVIRONMENT}"; +CMS_PREVIEW_URL="https://graphql-preview.contentstack.com/stacks/${CMS_API_KEY}?environment=${CMS_ENVIRONMENT}"; CMS_PREVIEW_TOKEN="" \ No newline at end of file diff --git a/app/[lang]/(live)/current-content-page/page.tsx b/app/[lang]/(live)/current-content-page/page.tsx index 7612cdc5a..71feae069 100644 --- a/app/[lang]/(live)/current-content-page/page.tsx +++ b/app/[lang]/(live)/current-content-page/page.tsx @@ -19,15 +19,17 @@ export default async function CurrentContentPage({ searchParams, }: PageArgs) { try { - console.log({ searchParams }); if (!searchParams.uri) { throw new Error("Bad URI") } - const response = await request(GetCurrentBlockPage, { - locale: params.lang, - url: searchParams.uri, - }) + const response = await request( + GetCurrentBlockPage, + { + locale: params.lang, + url: searchParams.uri, + } + ) if (!response.data?.all_current_blocks_page?.total) { console.log("#### DATA ####") @@ -45,13 +47,18 @@ export default async function CurrentContentPage({ <>
{images?.totalCount ? : null} -
- - +
+ + >) { - // if (!searchParams.uri) { - // throw new Error("Bad URI"); - // } - - return ( - <> - {/*
*/} - {children} - - ); -} - diff --git a/app/[lang]/(preview)/layout.tsx b/app/[lang]/(preview)/layout.tsx index ab1c948e8..13c2a638f 100644 --- a/app/[lang]/(preview)/layout.tsx +++ b/app/[lang]/(preview)/layout.tsx @@ -22,10 +22,6 @@ export default function RootLayout({ return ( - {/*