Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 authored and Ariesly committed Apr 17, 2024
1 parent bd4d556 commit 339a262
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/presets/iis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ async function iisnodeXmlTemplate(nitro: Nitro) {
await parseXmlDoc(fileString);

if (nitro.options.iis.mergeConfig && !nitro.options.iis.overrideConfig) {
return buildNewXmlDoc(defu(originalWebConfig, fileWebConfig));
return buildNewXmlDoc(defu(fileWebConfig, originalWebConfig));
} else if (nitro.options.iis.overrideConfig) {
return buildNewXmlDoc({ ...fileWebConfig });
}
Expand Down Expand Up @@ -150,7 +150,7 @@ async function iisXmlTemplate(nitro: Nitro) {
await parseXmlDoc(fileString);

if (nitro.options.iis.mergeConfig && !nitro.options.iis.overrideConfig) {
return buildNewXmlDoc(defu(originalWebConfig, fileWebConfig));
return buildNewXmlDoc(defu(fileWebConfig, originalWebConfig));
} else if (nitro.options.iis.overrideConfig) {
return buildNewXmlDoc({ ...fileWebConfig });
}
Expand Down

0 comments on commit 339a262

Please sign in to comment.