Skip to content

Commit 429e33f

Browse files
authored
Use latest v11 npm and set git safe.directory on build (#2738)
* install latest npm 11 on container build * Fix setting git safe.directory * Make setting git config more robust
1 parent 9ebc384 commit 429e33f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
},
88

99
// Use 'postCreateCommand' to run commands after the container is created.
10-
"postCreateCommand": "npm install && sudo npx playwright install-deps && npx playwright install",
10+
"postCreateCommand": "git config --global --replace-all safe.directory \"$(dirname \"$PWD\")\" && npm install -g npm@11 && npm install && sudo npx playwright install-deps && npx playwright install",
1111
"postStartCommand": "npm install && npm run dev",
1212
"customizations": {
1313
"vscode": {

0 commit comments

Comments
 (0)