Skip to content

Commit

Permalink
Don't generate certs in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
niemyjski committed Oct 9, 2024
1 parent dfe98b7 commit f0f366f
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,17 @@ function getTarget() {
};
}

/** Function taken from aspnetcore-https.js in ASP.NET React template */
/** Function taken from aspnetcore-https.js in ASP.NET React template https://github.com/microsoft/commercial-marketplace-offer-deploy/blob/main/src/ClientApp/ClientApp/aspnetcore-https.ts */
function generateCerts() {
if (process.env.CI) {
// eslint-disable-next-line no-console
console.warn("Skipping certificate generation in CI environment.");
return {
cert: undefined,
key: undefined,
};
}

var baseFolder =
process.env.APPDATA !== undefined && process.env.APPDATA !== ""
? `${process.env.APPDATA}/ASP.NET/https`
Expand Down

0 comments on commit f0f366f

Please sign in to comment.