mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-10-30 16:47:54 +09:00
## Description [Big Project Example](https://postgrest.development.webstudio.is/builder/be939bf2-9095-4e17-b175-69de2bbf9597) Reduces time of big projects loading: ✓ { scenario:new_o }...........: avg=2.58s min=1.99s med=2.54s max=3.53s p(90)=2.95s p(95)=3.15s p(99)=3.44s count=31 ✓ { scenario:old_o }...........: avg=5.5s min=4.55s med=5.12s max=15.58s p(90)=5.44s p(95)=6.02s p(99)=12.87s count=31 2 times faster. (but highly depends on test times, project size etc sometimes it's 6x difference) Reduces patch time too. ## Steps for reproduction 1. click button 2. expect xyz ## Code Review - [ ] hi @kof, I need you to do - conceptual review (architecture, feature-correctness) - detailed review (read every line) - test it on preview ## Before requesting a review - [ ] made a self-review - [ ] added inline comments where things may be not obvious (the "why", not "what") ## Before merging - [ ] tested locally and on preview environment (preview dev login: 5de6) - [ ] updated [test cases](https://github.com/webstudio-is/webstudio/blob/main/apps/builder/docs/test-cases.md) document - [ ] added tests - [ ] if any new env variables are added, added them to `.env` file
46 lines
1.5 KiB
JSON
46 lines
1.5 KiB
JSON
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
|
// README at: https://github.com/devcontainers/templates/tree/main/src/javascript-node-postgres
|
|
{
|
|
"name": "Node.js & PostgreSQL",
|
|
"dockerComposeFile": "docker-compose.yml",
|
|
"service": "app",
|
|
"workspaceFolder": "/workspaces/webstudio",
|
|
"features": {
|
|
"ghcr.io/robbert229/devcontainer-features/postgresql-client:1": {
|
|
"version": "15"
|
|
},
|
|
"ghcr.io/devcontainers-contrib/features/fzf:1": {}
|
|
},
|
|
|
|
// Features to add to the dev container. More info: https://containers.dev/features.
|
|
// "features": {},
|
|
|
|
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
|
// This can be used to network with other containers or with the host.
|
|
// "forwardPorts": [3000, 5432],
|
|
"forwardPorts": [5173],
|
|
|
|
// Use 'postCreateCommand' to run commands after the container is created.
|
|
|
|
"postCreateCommand": ".devcontainer/postinstall.sh",
|
|
// "postStartCommand": "git config --global --add safe.directory ${containerWorkspaceFolder}",
|
|
"customizations": {
|
|
"vscode": {
|
|
"extensions": [
|
|
"esbenp.prettier-vscode",
|
|
"redhat.vscode-yaml",
|
|
"me-dutour-mathieu.vscode-github-actions",
|
|
"eamodio.gitlens",
|
|
"bradymholt.pgformatter",
|
|
"YoavBls.pretty-ts-errors"
|
|
]
|
|
}
|
|
}
|
|
|
|
// Configure tool-specific properties.
|
|
// "customizations": {},
|
|
|
|
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
|
|
// "remoteUser": "root"
|
|
}
|