File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- export const dynamic = 'force-dynamic'
2-
1+ import { connection } from 'next/server'
32import { getAuthSession } from '@/lib/auth'
43import { redirect } from 'next/navigation'
54import { headers } from 'next/headers'
@@ -41,6 +40,8 @@ function NotEligibleDisplay() {
4140}
4241
4342export default async function TravelExpensePage ( ) {
43+ await connection ( )
44+
4445 const headersList = await headers ( )
4546 const fullUrl = headersList . get ( 'x-url' ) || ''
4647 const session = await getAuthSession ( { url : fullUrl } )
Original file line number Diff line number Diff line change 1- export const dynamic = 'force-dynamic'
2-
1+ import { connection } from 'next/server'
32import { getAuthSession } from '@/lib/auth'
43import { redirect } from 'next/navigation'
54import { headers } from 'next/headers'
@@ -21,6 +20,8 @@ import type { ConferenceWithSpeakerData } from '@/lib/dashboard/types'
2120import type { BadgeRecord } from '@/lib/badge/types'
2221
2322export default async function SpeakerDashboard ( ) {
23+ await connection ( )
24+
2425 const headersList = await headers ( )
2526 const fullUrl = headersList . get ( 'x-url' ) || ''
2627 const { domain } = await getConferenceForCurrentDomain ( { } )
Original file line number Diff line number Diff line change 1- export const dynamic = 'force-dynamic'
2-
1+ import { connection } from 'next/server'
32import { getAuthSession } from '@/lib/auth'
43import { getSpeaker } from '@/lib/speaker/sanity'
54import { redirect } from 'next/navigation'
@@ -8,6 +7,8 @@ import { CFPProfilePage } from '@/components/cfp/CFPProfilePage'
87import { getConferenceForCurrentDomain } from '@/lib/conference/sanity'
98
109export default async function ProfilePage ( ) {
10+ await connection ( )
11+
1112 const headersList = await headers ( )
1213 const fullUrl = headersList . get ( 'x-url' ) || ''
1314 const session = await getAuthSession ( { url : fullUrl } )
Original file line number Diff line number Diff line change 1- export const dynamic = 'force-dynamic'
2-
1+ import { connection } from 'next/server'
32import { XCircleIcon } from '@heroicons/react/24/solid'
43import Link from 'next/link'
54import {
@@ -29,6 +28,8 @@ export default async function ProposalPage({
2928 params : Promise < { id ?: string [ ] } >
3029 searchParams : Promise < { id ?: string } >
3130} ) {
31+ await connection ( )
32+
3233 // Support both /cfp/proposal/[id] and /cfp/proposal?id=[id] patterns
3334 const routeParams = await params
3435 const queryParams = await searchParams
Original file line number Diff line number Diff line change 1- export const dynamic = 'force-dynamic'
2-
1+ import { connection } from 'next/server'
32import { notFound , redirect } from 'next/navigation'
43import { headers } from 'next/headers'
54import { getProposalSanity as getProposal } from '@/lib/proposal/server'
@@ -23,6 +22,8 @@ interface ProposalViewPageProps {
2322export default async function ProposalViewPage ( {
2423 params,
2524} : ProposalViewPageProps ) {
25+ await connection ( )
26+
2627 const { id } = await params
2728 const headersList = await headers ( )
2829 const fullUrl = headersList . get ( 'x-url' ) || ''
Original file line number Diff line number Diff line change 1- export const dynamic = 'force-dynamic'
2-
1+ import { connection } from 'next/server'
32import { redirect } from 'next/navigation'
43import { headers } from 'next/headers'
54import { getAuthSession } from '@/lib/auth'
@@ -45,6 +44,8 @@ interface WorkshopDetails {
4544export default async function WorkshopDetailsPage ( {
4645 params,
4746} : WorkshopDetailsPageProps ) {
47+ await connection ( )
48+
4849 const { id : workshopId } = await params
4950 const headersList = await headers ( )
5051 const fullUrl = headersList . get ( 'x-url' ) || ''
You can’t perform that action at this time.
0 commit comments