Skip to content

Commit

Permalink
set page to dynamic
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Jul 17, 2024
1 parent 51cd846 commit af3b329
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
export default function Page() {
throw new Error('server-dynamic-page-node-error')
}

export const dynamic = 'force-dynamic'
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
export function GET() {
throw new Error('server-dynamic-route-node-error')
}

export const dynamic = 'force-dynamic'
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ describe('on-request-error - dynamic-routes', () => {
})
})

it('should catch client component page error in node runtime', async () => {
it('should catch suspense rendering page error in node runtime', async () => {
await next.fetch('/app-page/suspense')
const record = await getErrorRecord({
errorMessage: 'server-suspense-page-node-error',
Expand Down

0 comments on commit af3b329

Please sign in to comment.