7 Commits

Author SHA1 Message Date
Victor Savkin
d4b5c30eba
cleanup(core): remove the indirection left after inlining ta… (#9469) 2022-03-23 22:18:17 -04:00
Miroslav Jonaš
41914d2961
fix(web): ensure file server works on windows (#9449) 2022-03-22 22:39:42 +01:00
Sorin Davidoi
f5dfb837a2
fix(web): don't allow arbitrary code execution in file-server (#9330)
The Node documentation for `exec` states:

> Never pass unsanitized user input to this function. Any input containing shell metacharacters may be used to trigger arbitrary command execution.

The `outputPath`, `options.buildTarget` and `options.maxParallel` come from `nx.json`. Careful crafting of these fields can result in NX executing arbitrary commands.

This patch fixes this by using `execFile`, which does not spawn a shell.
2022-03-18 16:16:31 -04:00
Austin
48d32acca3
feat(web): add proxy config support to file-server executor (#9225) 2022-03-15 16:11:17 -04:00
Colum Ferry
1440f8362c
fix(web): file-server withDeps is deprecated (#9170)
* fix(web): file-server withDeps is deprecated

* docs(web): fix spacing issue
2022-03-09 11:32:12 -05:00
Leosvel Pérez Espinosa
7a35db9037
fix(web): prevent caching in the file-server (#8472) 2022-01-11 12:21:10 -05:00
vsavkin
319a90b6ab feat(web): add a plugin to coordinate webpack and nx builds 2021-05-19 16:12:02 -04:00