mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
9 lines
208 B
JavaScript
9 lines
208 B
JavaScript
const fetch = require('isomorphic-unfetch')
|
|
|
|
;(async () => {
|
|
const { status } = await fetch('https://example.vercel.sh')
|
|
if (status !== 200) {
|
|
throw new Error(`Unexpected status: ${status}`)
|
|
}
|
|
})()
|