Unverified Commit 59924967 authored by Stephen Cefali's avatar Stephen Cefali Committed by GitHub

remove broken server example (#15653)

This removes the server 4 example which breaks all server code since the error will happen when the file is sourced.
parent c1e5b66c
...@@ -41,14 +41,6 @@ const Index = () => ( ...@@ -41,14 +41,6 @@ const Index = () => (
Open in a new tab Open in a new tab
</a> </a>
</li> </li>
<li>
There is a top-of-module Promise that rejects, but its result is not
awaited. Sentry should record Error('Server Test 4'). Note this will
also be recorded on the client side, once the page is hydrated.{' '}
<a href="/server/test4" target="_blank">
Open in a new tab
</a>
</li>
</ul> </ul>
<li>Client exceptions</li> <li>Client exceptions</li>
......
const doAsyncWork = () => Promise.reject(new Error('Server Test 4'))
doAsyncWork()
const Test4 = () => <h1>Server Test 4</h1>
// Define getServerSideProps so that the page will be server rendered
// instead of statically generated
export async function getServerSideProps() {
return { props: {} }
}
export default Test4
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment