Need help!
Our app size is 324mb. We deploy to heroku with this build pack. Meteor release is 2.10.
Deployment time has slowly increased. Now build fails often with message:
-----> Building Meteor app with ROOT_URL (secret)
-----> Timed out running buildpack Node.js
! Timed out compiling app (25 minutes)
npm dependencies
"dependencies": {
"@apollo/client": "^3.6.9",
"@babel/runtime": "^7.17.9",
"@emotion/react": "^11.10.5",
"@emotion/styled": "^11.10.5",
"@graphql-tools/schema": "^8.5.1",
"@mui/icons-material": "^5.11.0",
"@mui/lab": "^5.0.0-alpha.112",
"@mui/material": "^5.11.0",
"@mui/styles": "^5.11.0",
"@mui/x-date-pickers": "^5.0.11",
"@sentry/node": "^6.19.7",
"@sentry/react": "^6.19.7",
"@sentry/tracing": "^6.19.7",
"apollo-server-express": "^3.6.7",
"aws-sdk": "^2.1128.0",
"b64-to-blob": "^1.2.19",
"babel-plugin-styled-components": "^2.0.7",
"base64-stream": "^1.0.0",
"bcrypt": "^5.0.1",
"chart.js": "^3.8.2",
"chartjs-plugin-datalabels": "^2.1.0",
"downloadjs": "^1.4.7",
"express": "^4.18.1",
"fast-xml-parser": "^3.21.1",
"graphql": "^15.8.0",
"graphql-subscriptions": "^1.2.1",
"graphql-ws": "^5.9.1",
"handlebars": "^4.7.7",
"helmet": "^4.6.0",
"jsonwebtoken": "^9.0.0",
"juice": "^8.0.0",
"lodash": "4.17.21",
"meteor-accounts-t9n": "^2.6.0",
"meteor-node-stubs": "^1.2.3",
"moment": "^2.29.4",
"moment-timezone": "^0.5.37",
"node-cron": "^3.0.0",
"pdfkit": "^0.13.0",
"pdfkit-table": "^0.1.89",
"prop-types": "^15.8.1",
"react": "^17.0.2",
"react-bootstrap": "^1.6.4",
"react-chartjs-2": "^4.3.1",
"react-dom": "^17.0.2",
"react-dropzone": "^11.7.1",
"react-joyride": "^2.4.0",
"react-markdown": "^7.1.2",
"react-router": "^5.3.1",
"react-router-dom": "^5.3.1",
"styled-components": "^5.3.5",
"twilio": "^3.84.1",
"ws": "^8.8.1",
"xlsx": "^0.18.5",
"xml": "^1.0.1"
},
"devDependencies": {
"@babel/cli": "^7.19.3",
"@babel/core": "^7.17.10",
"@babel/eslint-parser": "^7.17.0",
"@babel/helper-compilation-targets": "^7.17.10",
"@babel/plugin-transform-runtime": "^7.17.10",
"@babel/preset-env": "^7.20.2",
"@babel/preset-react": "^7.16.7",
"@meteorjs/eslint-config-meteor": "^1.0.5",
"@testing-library/react": "^12.1.5",
"@tsconfig/recommended": "^1.0.1",
"@types/jest": "^27.5.1",
"@types/jsonwebtoken": "^8.5.8",
"@types/lodash": "^4.14.182",
"@types/meteor": "^1.4.87",
"@types/react": "^17.0.44",
"@types/react-router-dom": "^5.3.3",
"@types/styled-components": "^5.1.25",
"@types/ws": "^8.5.3",
"@typescript-eslint/eslint-plugin": "^4.33.0",
"@typescript-eslint/parser": "^4.33.0",
"babel-jest": "^27.5.1",
"babel-plugin-graphql-tag": "^3.3.0",
"babel-plugin-import-graphql": "^2.8.1",
"babel-plugin-lodash": "^3.3.4",
"cypress": "^11.1.0",
"eslint": "^7.32.0",
"eslint-config-airbnb": "^18.2.1",
"eslint-config-prettier": "^8.5.0",
"eslint-import-resolver-meteor": "^0.4.0",
"eslint-plugin-cypress": "^2.12.1",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-meteor": "^7.3.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.29.4",
"eslint-plugin-react-hooks": "^4.5.0",
"husky": "^7.0.4",
"jest": "^27.5.1",
"jest-cli": "^27.5.1",
"lint-staged": "^11.2.6",
"mongo-seeding": "^3.7.2",
"prettier": "^2.6.2",
"react-test-renderer": "^18.1.0",
"ts-jest": "^28.0.2",
"typescript": "^4.6.4"
}
meteor packages
meteor-base@1.5.1 # Packages every Meteor app needs to have
mobile-experience@1.1.0 # Packages for a great mobile UX
mongo@1.16.4 # The database Meteor supports right now
reactive-var@1.0.12 # Reactive variable for tracker
tracker@1.3.0 # Meteor's client-side reactive programming library
standard-minifier-css@1.8.3 # CSS minifier run for production mode
standard-minifier-js@2.8.1 # JS minifier run for production mode
es5-shim@4.8.0 # ECMAScript 5 compatibility for older browsers.
ecmascript@0.16.5 # Enable ECMAScript2015+ syntax in app code
shell-server@0.5.0 # Server-side component of the `meteor shell` command
alanning:roles
accounts-base@2.2.6
accounts-password@2.3.3
service-configuration@1.3.1
fortawesome:fontawesome
audit-argument-checks@1.0.7
ddp-rate-limiter@1.1.1
dynamic-import@0.7.2
static-html@1.3.2
server-render@0.4.1
meteorhacks:picker
apollo
swydo:graphql
fourseven:scss
react-meteor-data
accounts-google@1.4.0
force-ssl@1.1.0
hot-module-replacement@0.5.2
typescript@4.7.4
Output of heroku builds -a shows how time has increased lately
Created At Duration Status
βββββββββββββββββββββββββββββββββββββ ββββββββ βββββββββ
2023/02/07 12:38:10 +0200 (~ 12m ago) pending
2023/02/07 11:50:57 +0200 (~ 1h ago) 57m 25s succeeded
2023/01/31 03:37:11 +0200 27m 49s failed
2023/01/31 02:47:59 +0200 49m 3s failed
2023/01/20 02:47:24 +0200 42m 16s succeeded
2023/01/19 09:46:17 +0200 33m 7s succeeded
2023/01/19 02:47:40 +0200 30m 10s succeeded
2023/01/17 02:47:47 +0200 31m 39s succeeded
2023/01/14 02:47:16 +0200 31m 56s succeeded
2023/01/13 02:48:04 +0200 36m 50s succeeded
2023/01/03 02:47:25 +0200 27m 36s succeeded
2022/12/30 02:47:43 +0200 28m 19s succeeded
2022/12/29 02:47:28 +0200 28m 31s succeeded
2022/12/23 02:47:29 +0200 27m 47s succeeded
2022/12/21 10:49:07 +0200 28m 14s succeeded
Surely something can be done, any tips how to proceed?