Skip to content

Commit

Permalink
useRuntimeConfig in E2E
Browse files Browse the repository at this point in the history
  • Loading branch information
s1gr1d committed Aug 27, 2024
1 parent 60e3c54 commit 6296500
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,11 @@ export default defineNuxtConfig({
imports: {
autoImport: false,
},
runtimeConfig: {
public: {
sentry: {
dsn: 'https://[email protected]/1337',
},
},
},
});
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import * as Sentry from '@sentry/nuxt';
import { useRuntimeConfig } from '#imports';

Sentry.init({
environment: 'qa', // dynamic sampling bias to keep transactions
dsn: 'https://public@dsn.ingest.sentry.io/1337',
dsn: useRuntimeConfig().public.sentry.dsn,
tunnel: `http://localhost:3031/`, // proxy server
tracesSampleRate: 1.0,
});

0 comments on commit 6296500

Please sign in to comment.