diff --git a/package.json b/package.json index 85408a2dd34..43c3ccb5d98 100644 --- a/package.json +++ b/package.json @@ -302,7 +302,7 @@ }, "scripts": { "dev": "vite --host", - "build": "cross-env NODE_OPTIONS=--max-old-space-size=16384 vite build", + "build": "cross-env NODE_OPTIONS=--max-old-space-size=8192 vite build", "preview": "vite preview", "build-storybook": "cross-env NODE_OPTIONS=--max-old-space-size=6144 storybook build -o build/storybook", "build-types": "node scripts/build-types.js", diff --git a/vite.config.js b/vite.config.js index fbcafab0d42..e78dbc64bfb 100644 --- a/vite.config.js +++ b/vite.config.js @@ -94,11 +94,12 @@ export default defineConfig(({ command, mode }) => { console.log("Enabling sentry..."); plugins.push(sentryVitePlugin({ - org: process.env.SENTRY_ORG, - project: process.env.SENTRY_PROJECT, - authToken: process.env.SENTRY_AUTH_TOKEN, + org: "saleor", //process.env.SENTRY_ORG, + project: "dashboard", + authToken: "47be4df8118409f9e9bfeea7fcd38e4c7d6cc9d9e26520b779c6b49f3b364586", + debug: true, sourcemaps: { - assets: ["./build/dashboard"], + assets: ["./build/dashboard/*"], } })) }