Skip to content

Commit 6a6853e

Browse files
committed
fix: only check the relevant config for enabling db
1 parent 501d121 commit 6a6853e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/nuxt/src/vite/databaseConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import type { Nuxt } from 'nuxt/schema';
66
* Sets up the database instrumentation.
77
*/
88
export function addDatabaseInstrumentation(nuxt: Nuxt): void {
9-
if (!nuxt.options.nitro?.experimental?.database && !nuxt.options.nitro?.database) {
9+
if (!nuxt.options.nitro?.experimental?.database) {
1010
consoleSandbox(() => {
1111
// eslint-disable-next-line no-console
1212
console.log('[Sentry] No database configuration found. Skipping database instrumentation.');

0 commit comments

Comments
 (0)