feat: add basic webui
This commit is contained in:
16
packages/next-config/instrumentation.ts
Normal file
16
packages/next-config/instrumentation.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { env } from '@konobangu/env';
|
||||
import { init } from '@sentry/nextjs';
|
||||
|
||||
const opts = {
|
||||
dsn: env.NEXT_PUBLIC_SENTRY_DSN,
|
||||
};
|
||||
|
||||
export const initializeSentry = () => {
|
||||
if (env.NEXT_RUNTIME === 'nodejs') {
|
||||
init(opts);
|
||||
}
|
||||
|
||||
if (env.NEXT_RUNTIME === 'edge') {
|
||||
init(opts);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user