Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade toolpad #3

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions fake-server.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const express = require('express')
const app = express()
const port = 80

app.get('/', (req, res) => {
const arr = [1, 2, 3, 4, 5, 6, 9, 7, 8, 9, 10];
arr.reverse();
const used = process.memoryUsage();
let log = '';
for (let key in used) {
log += `${key} ${Math.round(used[key] / 1024 / 1024 * 100) / 100} MB\n`;
}

res.send(`Hello World! ${log}`)
})

app.listen(port, () => {
console.log(`Example app listening on port ${port}`)
})
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
"scripts": {
"dev": "toolpad dev",
"build": "toolpad build",
"start": "toolpad start"
"start": "NODE_OPTIONS='--max-old-space-size=396' node fake-server.js"
},
"dependencies": {
"@mui/toolpad": "0.1.17",
"@mui/toolpad": "^0.1.17",
"express": "^4.18.2",
"libnpmorg": "^5.0.4"
}
}
Loading