@ -25,6 +25,14 @@ const nextConfig = {
|
||||
},
|
||||
]
|
||||
},
|
||||
async rewrites() {
|
||||
return [
|
||||
{
|
||||
source: '/healthz',
|
||||
destination: '/api/health',
|
||||
},
|
||||
]
|
||||
},
|
||||
}
|
||||
|
||||
export default nextConfig
|
||||
|
5
ee/apps/landing-page/pages/api/health.ts
Normal file
5
ee/apps/landing-page/pages/api/health.ts
Normal file
@ -0,0 +1,5 @@
|
||||
import { NextApiRequest, NextApiResponse } from 'next'
|
||||
|
||||
export default function handler(req: NextApiRequest, res: NextApiResponse) {
|
||||
res.status(200).json({ status: 'ok', timestamp: new Date().toISOString() })
|
||||
}
|
Reference in New Issue
Block a user