mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
refactor: webpack config (#11421)
This commit is contained in:
@@ -11,8 +11,8 @@ type Middleware = (
|
||||
|
||||
function createMixpanel() {
|
||||
let mixpanel;
|
||||
if (process.env.MIXPANEL_TOKEN) {
|
||||
mixpanelBrowser.init(process.env.MIXPANEL_TOKEN || '', {
|
||||
if (BUILD_CONFIG.MIXPANEL_TOKEN) {
|
||||
mixpanelBrowser.init(BUILD_CONFIG.MIXPANEL_TOKEN || '', {
|
||||
track_pageview: true,
|
||||
persistence: 'localStorage',
|
||||
api_host: 'https://telemetry.affine.run',
|
||||
|
||||
@@ -14,9 +14,9 @@ function createSentry() {
|
||||
if (!globalThis.SENTRY_RELEASE) {
|
||||
// https://docs.sentry.io/platforms/javascript/guides/react/#configure
|
||||
client = Sentry.init({
|
||||
dsn: process.env.SENTRY_DSN,
|
||||
dsn: BUILD_CONFIG.SENTRY_DSN,
|
||||
debug: BUILD_CONFIG.debug ?? false,
|
||||
environment: process.env.BUILD_TYPE ?? 'development',
|
||||
environment: BUILD_CONFIG.appBuildType,
|
||||
integrations: [
|
||||
Sentry.reactRouterV6BrowserTracingIntegration({
|
||||
useEffect,
|
||||
|
||||
Reference in New Issue
Block a user