In Windows:
scoop install mkcert
mkcert -installIn Linux:
In Windows:
scoop install mkcert
mkcert -installIn Linux:
| import os from 'os' | |
| import cp from 'child_process' | |
| function getPlatform(): NodeJS.Platform { | |
| // Detect WSL | |
| if (os.platform() === 'linux' && os.release().includes('Microsoft')) { | |
| return 'win32' | |
| } | |
| return os.platform() | |
| } |