ssg to ssr

This commit is contained in:
hamid zarghami
2025-10-19 12:01:14 +03:30
parent afe3b703c4
commit 832fdc0d08
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -13,6 +13,8 @@ import { Suspense } from 'react'
import PageLoading from '@/components/PageLoading' import PageLoading from '@/components/PageLoading'
import { getLandingQueryOptions } from './home/hooks/useHomeData' import { getLandingQueryOptions } from './home/hooks/useHomeData'
export const dynamic = 'force-dynamic'
const HomePage: NextPage = () => { const HomePage: NextPage = () => {
return ( return (
+2
View File
@@ -5,6 +5,8 @@ import { HydrationBoundary, QueryClient, dehydrate } from '@tanstack/react-query
import { Suspense } from 'react' import { Suspense } from 'react'
import PageLoading from '@/components/PageLoading' import PageLoading from '@/components/PageLoading'
export const dynamic = 'force-dynamic'
interface SingleProductPageProps { interface SingleProductPageProps {
params: Promise<{ id: string }> params: Promise<{ id: string }>
} }