Skip to content

Commit 6a798f0

Browse files
committed
add suspense wrapper
1 parent 2cc9d59 commit 6a798f0

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

site/src/app/redirect/page.tsx

+10-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
'use client'
2+
23
import { useSearchParams } from 'next/navigation'
3-
export default async function Page() {
4+
import { Suspense } from 'react'
5+
6+
export default function Page() {
47
const searchParams = useSearchParams()
58
const game = searchParams.get('game')
69
const urlPrefix = "0; URL=com.epicgames.launcher://store"
710
var content = game == null ? urlPrefix : urlPrefix + "/p/" + game
8-
return <head className='redirect'>
9-
<meta http-equiv="refresh" content={content}/>
10-
redirecting to desktop app ...
11-
</head>
11+
return <Suspense>
12+
<head className='redirect'>
13+
<meta http-equiv="refresh" content={content}/>
14+
redirecting to desktop app ...
15+
</head>
16+
</Suspense>
1217
}

0 commit comments

Comments
 (0)