Created
March 25, 2025 02:04
-
-
Save furan917/7804ca1b00bf5c022b93ee621ea6f5d4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// this file exists only for CI/CD (For those who have to deal with devs or admin users who love to create/delete sites on preprod envs) | |
// it is not used by the application and can be safely removed after compilation | |
$originalConfig = include 'config-orig.php'; | |
$scopeConfig = [ | |
'scopes' => [ | |
'websites' => [ | |
'admin' => [ | |
'website_id' => '0', | |
'code' => 'admin', | |
'name' => 'Admin', | |
'sort_order' => '0', | |
'default_group_id' => '0', | |
'is_default' => '0', | |
], | |
'base' => [ | |
'website_id' => '1', | |
'code' => 'base', | |
'name' => 'Main Website', | |
'sort_order' => '0', | |
'default_group_id' => '1', | |
'is_default' => '1', | |
] | |
], | |
'groups' => [ | |
0 => [ | |
'group_id' => '0', | |
'website_id' => '0', | |
'name' => 'Default', | |
'root_category_id' => '0', | |
'default_store_id' => '0', | |
'code' => 'default', | |
], | |
1 => [ | |
'group_id' => '1', | |
'website_id' => '1', | |
'name' => 'Main Website Store', | |
'root_category_id' => '2', | |
'default_store_id' => '1', | |
'code' => 'main_website_store', | |
] | |
], | |
'stores' => [ | |
'admin' => [ | |
'store_id' => '0', | |
'code' => 'admin', | |
'website_id' => '0', | |
'group_id' => '0', | |
'name' => 'Admin', | |
'sort_order' => '0', | |
'is_active' => '1', | |
], | |
'default' => [ | |
'store_id' => '1', | |
'code' => 'default', | |
'website_id' => '1', | |
'group_id' => '1', | |
'name' => 'Default Store View', | |
'sort_order' => '0', | |
'is_active' => '1', | |
] | |
], | |
], | |
]; | |
return array_merge($scopeConfig, $originalConfig); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment