chore: fix minor runtime warnings (#6518)

This commit is contained in:
Bijin A B
2025-12-27 00:17:14 +05:30
committed by GitHub
parent faec95f623
commit 84f572fa88
2 changed files with 6 additions and 6 deletions

View File

@@ -76,10 +76,10 @@ async function transformBrunoConfigAfterRead(brunoConfig, collectionPathname) {
// Migrate proxy configuration from old format to new format
if (brunoConfig.proxy) {
const proxy = brunoConfig.proxy;
const proxy = brunoConfig.proxy || {};
// Check if this is an old format (has 'enabled' property)
if ('enabled' in proxy) {
if (proxy.hasOwnProperty('enabled')) {
const enabled = proxy.enabled;
let newProxy = {