mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-22 08:38:13 +02:00
* refactor: carve out extraction panel * refactor: create spec versions for node types * refactor: create a GenericNode and remove custom nodes * feat: add python and typescript sdk * add dograh sdk * fix: fetch draft workflow definition over published one * fix: fix routes of SDKs to use code gen * chore: remove doclink dependency to reduce image size * chore: format files * chore: bump pipecat * feat: let mcp fetch archived workflows on demand * chore: fix tests * feat: add sdk documentation * chore: change banner and add badge
23 lines
620 B
TypeScript
23 lines
620 B
TypeScript
import * as Sentry from '@sentry/nextjs';
|
|
|
|
export async function register() {
|
|
if (process.env.NEXT_PUBLIC_NODE_ENV === 'development') {
|
|
return;
|
|
}
|
|
|
|
if (process.env.NEXT_RUNTIME === 'nodejs') {
|
|
// Enable source map support for better stack traces
|
|
if (process.env.NODE_ENV === 'development') {
|
|
const sourceMapSupport = await import('source-map-support');
|
|
sourceMapSupport.install();
|
|
}
|
|
|
|
await import('../sentry.server.config');
|
|
}
|
|
|
|
if (process.env.NEXT_RUNTIME === 'edge') {
|
|
await import('../sentry.edge.config');
|
|
}
|
|
}
|
|
|
|
export const onRequestError = Sentry.captureRequestError;
|