mirror of
https://github.com/hyperdxio/hyperdx
synced 2026-04-21 13:37:15 +00:00
15 lines
439 B
TypeScript
15 lines
439 B
TypeScript
import type { NextApiRequest, NextApiResponse } from 'next';
|
|
|
|
import { HDX_API_KEY, HDX_COLLECTOR_URL, HDX_SERVICE_NAME } from '@/config';
|
|
import type { NextApiConfigResponseData } from '@/types';
|
|
|
|
export default function handler(
|
|
req: NextApiRequest,
|
|
res: NextApiResponse<NextApiConfigResponseData>,
|
|
) {
|
|
res.status(200).json({
|
|
apiKey: HDX_API_KEY,
|
|
collectorUrl: HDX_COLLECTOR_URL,
|
|
serviceName: HDX_SERVICE_NAME,
|
|
});
|
|
}
|