Fix twenty-front performances (#6744)

I have investigated the performance of our frontend vite build:
`npx nx run twenty:start` of `npx nx run twenty:build`

RAM usage:
- 160Mb: vite serve
- background typescript checker: 2.5GB
- background eslint checker: 3.5GB

I'm introducing two environment variables in FE .env to disable these
checkers on lower configuration (and to disable them from CD build):
```
# VITE_DISABLE_TYPESCRIPT_CHECKER=true
# VITE_DISABLE_ESLINT_CHECKER=true
```
This commit is contained in:
Charles Bochet
2024-08-26 16:35:09 +02:00
committed by GitHub
parent 55685d3c5b
commit 1d6a1f64c9
5 changed files with 18 additions and 8 deletions

View File

@ -22,7 +22,7 @@
},
"start": {
"executor": "nx:run-commands",
"dependsOn": ["build"],
"dependsOn": ["typecheck", "build"],
"options": {
"cwd": "packages/twenty-server",
"command": "NODE_ENV=development && nest start --watch"