File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -10,12 +10,12 @@ import type { SentryNuxtClientOptions } from '../common/types';
1010 */
1111export function init ( options : SentryNuxtClientOptions ) : Client | undefined {
1212 console . log ( options )
13- console . log ( process . env . NODE_ENV )
13+ console . log ( import . meta . dev )
1414
1515 const sentryOptions = {
1616 /* BrowserTracing is added later with the Nuxt client plugin */
1717 defaultIntegrations : [ ...getBrowserDefaultIntegrations ( options ) ] ,
18- environment : process . env . NODE_ENV ,
18+ environment : import . meta . dev ? 'development' : 'production' ,
1919 ...options ,
2020 } ;
2121
Original file line number Diff line number Diff line change @@ -17,11 +17,11 @@ import type { SentryNuxtServerOptions } from '../common/types';
1717 */
1818export function init ( options : SentryNuxtServerOptions ) : Client | undefined {
1919 console . log ( options )
20- console . log ( process . env . NODE_ENV )
20+ console . log ( import . meta . dev )
2121
2222 const sentryOptions = {
2323 defaultIntegrations : getNuxtDefaultIntegrations ( options ) ,
24- environment : process . env . NODE_ENV ,
24+ environment : import . meta . dev ? 'development' : 'production' ,
2525 ...options ,
2626 } ;
2727
You can’t perform that action at this time.
0 commit comments