Skip to content

Commit

Permalink
Increate memory for vite sourcemaps (sentry) (#4173)
Browse files Browse the repository at this point in the history
* Increate memory for vite sourcemaps (sentry)

* Changeset

* Remove legacy sentry
  • Loading branch information
andrzejewsky authored and krzysztofzuraw committed Sep 7, 2023
1 parent 36a125a commit df6480d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/empty-adults-obey.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"saleor-dashboard": patch
---

Increate memory for vite sourcemaps (sentry)
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@
},
"scripts": {
"dev": "vite --host",
"build": "cross-env NODE_OPTIONS=--max-old-space-size=6144 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",
Expand Down
7 changes: 2 additions & 5 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,8 @@ export default defineConfig(({ command, mode }) => {
org: process.env.SENTRY_ORG,
project: process.env.SENTRY_PROJECT,
authToken: process.env.SENTRY_AUTH_TOKEN,
release: {
uploadLegacySourcemaps: {
paths: ["./build/dashboard"],
urlPrefix: process.env.SENTRY_URL_PREFIX,
}
sourcemaps: {
assets: ["./build/dashboard/*"],
}
}))
}
Expand Down

0 comments on commit df6480d

Please sign in to comment.