feat: add edge request function
This commit is contained in:
@@ -5,7 +5,6 @@ import { GetCurrentBlockPageTrackingData } from "@/lib/graphql/Query/CurrentBloc
|
||||
import { request } from "@/lib/graphql/request"
|
||||
|
||||
import ContentPage from "@/components/Current/ContentPage"
|
||||
import Header from "@/components/Current/Header"
|
||||
import Tracking from "@/components/Current/Tracking"
|
||||
|
||||
import type { LangParams, PageArgs, UriParams } from "@/types/params"
|
||||
@@ -27,9 +26,7 @@ export default async function CurrentContentPage({
|
||||
locale: params.lang,
|
||||
url: searchParams.uri,
|
||||
},
|
||||
{
|
||||
next: { tags: [`${searchParams.uri}-${params.lang}`] },
|
||||
}
|
||||
{ tags: [`${searchParams.uri}-${params.lang}`] }
|
||||
)
|
||||
|
||||
if (!response.data?.all_current_blocks_page?.total) {
|
||||
@@ -43,9 +40,7 @@ export default async function CurrentContentPage({
|
||||
const pageDataForTracking = await request<TrackingData>(
|
||||
GetCurrentBlockPageTrackingData,
|
||||
{ uid: response.data.all_current_blocks_page.items[0].system.uid },
|
||||
{
|
||||
next: { tags: [`${searchParams.uri}-en`] },
|
||||
}
|
||||
{ tags: [`${searchParams.uri}-en`] }
|
||||
)
|
||||
|
||||
const pageData = response.data.all_current_blocks_page.items[0]
|
||||
|
||||
Reference in New Issue
Block a user