Skip to content

Commit

Permalink
moved to src, add instrumentation to import reflect-metadata (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpaulus authored Nov 15, 2024
1 parent 349534d commit c6d1235
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { NextResponse, NextRequest } from "next/server";
import { plainToInstance } from 'class-transformer';
import { validateOrReject } from 'class-validator';
import { WebhookAlertDto } from '../../../../../src/checkly/alertDTO';
import 'reflect-metadata';
import { WebhookAlertDto } from '../../../../../checkly/alertDTO';

export async function GET() {
return NextResponse.json({ message: "Hello from Next.js!" });
}
Expand Down
4 changes: 4 additions & 0 deletions src/instrumentation.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import 'reflect-metadata';
export function register() {
console.log('Registering instrumentation');
}

0 comments on commit c6d1235

Please sign in to comment.