mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
11 lines
227 B
JavaScript
11 lines
227 B
JavaScript
const axios = require('axios')
|
|
|
|
;(async () => {
|
|
const { status } = await axios({
|
|
url: 'https://example.vercel.sh',
|
|
})
|
|
if (status !== 200) {
|
|
throw new Error('Unexpected response: ' + JSON.stringify(data))
|
|
}
|
|
})()
|