From 7e7af50805ce35e8d677cd9e9a31bd2ae98410a6 Mon Sep 17 00:00:00 2001 From: David Kircos Date: Tue, 23 Apr 2024 11:06:37 -0600 Subject: [PATCH 1/2] increase memory allocated to build --- quadratic-client/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quadratic-client/package.json b/quadratic-client/package.json index a149519020..613b65e9fd 100644 --- a/quadratic-client/package.json +++ b/quadratic-client/package.json @@ -77,9 +77,9 @@ "main": "public/electron.js", "scripts": { "preview": "npm run build && vite preview --port=3000", - "start": "export VITE_VERSION=$(git rev-parse HEAD) && export NODE_OPTIONS=--max-old-space-size=8192 && vite dev", + "start": "export VITE_VERSION=$(git rev-parse HEAD) && export NODE_OPTIONS=--max-old-space-size=16384 && vite dev", "start:no-hmr": "npm run build && vite preview --port 3000", - "build": "export VITE_VERSION=$(git rev-parse HEAD) && export NODE_OPTIONS=--max-old-space-size=8192 && vite build", + "build": "export VITE_VERSION=$(git rev-parse HEAD) && export NODE_OPTIONS=--max-old-space-size=16384 && vite build", "build:wasm": "npm run build:wasm:javascript && npm run build:wasm:nodejs && npm run build:wasm:types", "build:wasm:types": "cd .. && cd quadratic-core && cargo run --bin export_types", "build:wasm:javascript": "cd .. && cd quadratic-core && wasm-pack build --target web --out-dir ../quadratic-client/src/app/quadratic-core --weak-refs", From 27c73eee552e017c23c5b5a2128b8ae5929f4bca Mon Sep 17 00:00:00 2001 From: David Kircos Date: Tue, 23 Apr 2024 11:10:32 -0600 Subject: [PATCH 2/2] fix ci on amplify previews --- quadratic-client/vite.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quadratic-client/vite.config.js b/quadratic-client/vite.config.js index b7a3e3d2a4..a1c4f565d9 100644 --- a/quadratic-client/vite.config.js +++ b/quadratic-client/vite.config.js @@ -16,7 +16,7 @@ export default defineConfig(() => { }, }), ]; - if (process.env.SENTRY_AUTH_TOKEN) { + if (process.env.SENTRY_AUTH_TOKEN && process.env.SENTRY_AUTH_TOKEN !== 'none') { plugins.push( sentryVitePlugin({ authToken: process.env.SENTRY_AUTH_TOKEN,