Hi guys,
I'm trying to run the init.ps1 script for the NextJS examples and receiving the following error:
C:\Users\...\Helix.Examples\examples\helix-basic-nextjs\init.ps1 : The term '.\mkcert.exe' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was include d, verify that the path is correct and try again.
At line:1 char:1
+ .\init.ps1
+ ~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (.\mkcert.exe:String) [init.ps1], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException,init.ps1
The issue is caused by this line because $mkcert is not known here:
Write-Host "setx NODE_EXTRA_CA_CERTS $(& $mkcert -CAROOT)\rootCA.pem"
It should probably be replaced with smth like this:
Write-Host "setx NODE_EXTRA_CA_CERTS $(& .\docker\traefik\certs\mkcert.exe -CAROOT)\rootCA.pem"