Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: sentry config #72

Merged
merged 3 commits into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions apps/evm/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ VITE_BTC_API_URL="https://btc-testnet.gobob.xyz"
VITE_FEATURE_FLAG_BTC_ONRAMP=disabled
VITE_INDEXER_BRIDGE_URL=""
VITE_SENTRY_URL=""
VITE_SENTRY_AUTH_TOKEN=""


/* MAINNET */
VITE_ONRAMP_API_URL="https://onramp-api-mainnet.gobob.xyz"
Expand Down
21 changes: 13 additions & 8 deletions apps/evm/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,29 @@ import wasm from 'vite-plugin-wasm';

// https://vitejs.dev/config/
export default defineConfig(({ mode }) => {
const env = loadEnv(mode, process.cwd());
// Load env file based on `mode` in the current working directory.
// Set the third parameter to '' to load all env regardless of the `VITE_` prefix.
const env = loadEnv(mode, process.cwd(), '');

return {
define: {
__APP_ENV__: JSON.stringify(env.APP_ENV)
},
build: {
target: 'esnext',
sourcemap: true // Source map generation must be turned on
},
plugins: [
react(),
nodePolyfills(),
wasm(),
sentryVitePlugin({
applicationKey: 'bob-ui-application-key',
authToken: env.VITE_SENTRY_AUTH_TOKEN,
org: 'distributed-crafts',
project: 'bob-ui'
project: 'bob-ui',
applicationKey: 'bob-ui-application-key',
authToken: process.env.SENTRY_AUTH_TOKEN
})
],
build: {
target: 'esnext',
sourcemap: true // Source map generation must be turned on
},
server: {
proxy: {
'/api': {
Expand Down