Skip to content

Commit

Permalink
Merge pull request #356 from GeoWerkstatt/https-cert-error
Browse files Browse the repository at this point in the history
Create folder for https certs, if necessary
  • Loading branch information
danjov authored Nov 25, 2024
2 parents 720774f + 9e98f4d commit 207bec9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ClientApp/aspnetcore-https.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ const baseFolder =
? `${process.env.APPDATA}/ASP.NET/https`
: `${process.env.HOME}/.aspnet/https`;

fs.mkdirSync(baseFolder, { recursive: true });

const certificateArg = process.argv.map(arg => arg.match(/--name=(?<value>.+)/i)).filter(Boolean)[0];
const certificateName = certificateArg ? certificateArg.groups.value : process.env.npm_package_name;

Expand Down

0 comments on commit 207bec9

Please sign in to comment.