Skip to content

Commit

Permalink
health (#310)
Browse files Browse the repository at this point in the history
  • Loading branch information
sritanmotati authored Feb 9, 2025
1 parent 1f0ca81 commit 5788342
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/pages/health.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import * as React from 'react'
import type { PageProps } from 'gatsby'

const HealthPage: React.FC<PageProps> = () => {
// Check user agent on the client side
React.useEffect(() => {
const userAgent = window.navigator.userAgent
if (userAgent !== 'service-status') {
window.location.href = '/'
}
}, [])

return <div>OK</div>
}

export default HealthPage

0 comments on commit 5788342

Please sign in to comment.