Skip to content

Commit

Permalink
hotfix: fix auth error
Browse files Browse the repository at this point in the history
  • Loading branch information
eunbeann committed Mar 20, 2024
1 parent 96fb2ae commit 73dfee1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
33 changes: 17 additions & 16 deletions src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,22 @@ import ReactDOM from 'react-dom/client';

import App from './App.tsx';

Sentry.init({
dsn: 'https://ff1721b5da5c3ed5ed8c4e4507b6ad51@o4506557086629888.ingest.sentry.io/4506573475741696',
environment: 'produnction',
integrations: [
new Sentry.BrowserTracing({
tracePropagationTargets: ['localhost', /^https:\/\/lecue\.me\/api/],
}),
new Sentry.Replay({
maskAllText: false,
blockAllMedia: false,
}),
],
tracesSampleRate: 1.0,
replaysSessionSampleRate: 0.1,
replaysOnErrorSampleRate: 1.0,
});
process.env.NODE_ENV === 'production' &&
Sentry.init({
dsn: 'https://ff1721b5da5c3ed5ed8c4e4507b6ad51@o4506557086629888.ingest.sentry.io/4506573475741696',

integrations: [
new Sentry.BrowserTracing({
tracePropagationTargets: ['localhost', /^https:\/\/lecue\.me\/api/],
}),
new Sentry.Replay({
maskAllText: false,
blockAllMedia: false,
}),
],
tracesSampleRate: 1.0,
replaysSessionSampleRate: 0.1,
replaysOnErrorSampleRate: 1.0,
});

ReactDOM.createRoot(document.getElementById('root')!).render(<App />);
1 change: 1 addition & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export default defineConfig({
sentryVitePlugin({
org: 'lecue',
project: 'javascript-react',
authToken: process.env.SENTRY_AUTH_TOKEN,
}),
],

Expand Down

0 comments on commit 73dfee1

Please sign in to comment.