Skip to content

Commit

Permalink
feat(app-vite/app-webpack): ensure cleartext is not used for Capacito…
Browse files Browse the repository at this point in the history
…r on prod #17219
  • Loading branch information
rstoenescu committed Sep 19, 2024
1 parent b3ce52c commit ce001d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app-vite/lib/modes/capacitor/config-file.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,9 @@ export class CapacitorConfigFile {
capJson.webDir = 'www'

// ensure we don't run from a remote server
if (capJson.server && capJson.server.url) {
if (capJson.server) {
delete capJson.server.url
delete capJson.server.cleartext
}
}

Expand Down
3 changes: 2 additions & 1 deletion app-webpack/lib/modes/capacitor/config-file.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,9 @@ module.exports.CapacitorConfigFile = class CapacitorConfigFile {
capJson.webDir = 'www'

// ensure we don't run from a remote server
if (capJson.server && capJson.server.url) {
if (capJson.server) {
delete capJson.server.url
delete capJson.server.cleartext
}
}

Expand Down

0 comments on commit ce001d4

Please sign in to comment.