hestia/src/index.ts
2024-12-03 16:23:39 -05:00

15 lines
342 B
TypeScript

import { logger } from '@lib/logger';
import { yoga } from './yoga';
const server = Bun.serve({
fetch: yoga.fetch,
error: (error) => {
logger.error(error.message);
return new Response('', {
status: 500,
statusText: 'You fucked the goose',
});
},
});
logger.info(`Server is running on: ${server.url}${yoga.graphqlEndpoint}`);