Skip to content

Best way to update core file in Magento 2.4

I am getting error when i install the magento 2.4.7 in xampp, after some correction i successfully installed it. I made update in appetcenv.php and index.php

Is there any problem in future for update magento version.

appetcenv.php

    'system' => [
    'default' => [
        'web' => [
            'unsecure' => [
                'base_media_url' => '{{secure_base_url}}pub/media/',
                'base_static_url' => '{{secure_base_url}}pub/static/'
            ],
            'secure' => [
                'base_media_url' => '{{secure_base_url}}pub/media/',
                'base_static_url' => '{{secure_base_url}}pub/static/'
            ]
        ]
    ]
],

index.php

 //require __DIR__ . '/../app/bootstrap.php';
require __DIR__ . '/app/bootstrap.php';