mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-06-26 18:26:38 +00:00
18 lines
477 B
TypeScript
18 lines
477 B
TypeScript
import type { LoaderFunctionArgs } from '@remix-run/cloudflare';
|
|
|
|
export const loader = async ({ request: _request }: LoaderFunctionArgs) => {
|
|
// Return a simple 200 OK response with some basic health information
|
|
return new Response(
|
|
JSON.stringify({
|
|
status: 'healthy',
|
|
timestamp: new Date().toISOString(),
|
|
uptime: process.uptime(),
|
|
}),
|
|
{
|
|
status: 200,
|
|
headers: {
|
|
'Content-Type': 'application/json',
|
|
},
|
|
},
|
|
);
|
|
};
|