sentry-adonis-v6
Version:
Sentry provider for adonisjs v6 framework
13 lines (12 loc) • 366 B
JavaScript
import { RuntimeException } from '@poppinss/utils';
export function defineConfig(config) {
if (!config.dsn) {
throw new RuntimeException('Missing "dsn" property in sentry config.');
}
if (!config.environment) {
throw new RuntimeException('Missing "environment" property in sentry config.');
}
return {
...config,
};
}