diff --git a/src/Web/ClientApp-React/aspnetcore-https.js b/src/Web/ClientApp-React/aspnetcore-https.js index 2bde92869..e1f96f49a 100644 --- a/src/Web/ClientApp-React/aspnetcore-https.js +++ b/src/Web/ClientApp-React/aspnetcore-https.js @@ -8,6 +8,8 @@ const baseFolder = ? `${process.env.APPDATA}/ASP.NET/https` : `${process.env.HOME}/.aspnet/https`; +if (!fs.existsSync(baseFolder)) { fs.mkdirSync(baseFolder, { recursive: true }); } + const certificateArg = process.argv.map(arg => arg.match(/--name=(?.+)/i)).filter(Boolean)[0]; const certificateName = certificateArg ? certificateArg.groups.value : process.env.npm_package_name; diff --git a/src/Web/ClientApp/aspnetcore-https.js b/src/Web/ClientApp/aspnetcore-https.js index 2bde92869..e1f96f49a 100644 --- a/src/Web/ClientApp/aspnetcore-https.js +++ b/src/Web/ClientApp/aspnetcore-https.js @@ -8,6 +8,8 @@ const baseFolder = ? `${process.env.APPDATA}/ASP.NET/https` : `${process.env.HOME}/.aspnet/https`; +if (!fs.existsSync(baseFolder)) { fs.mkdirSync(baseFolder, { recursive: true }); } + const certificateArg = process.argv.map(arg => arg.match(/--name=(?.+)/i)).filter(Boolean)[0]; const certificateName = certificateArg ? certificateArg.groups.value : process.env.npm_package_name;