<?php

$isHosting = false; // 🔥 ganti true kalau upload

return [

    'app' => [
        'isHosting' => $isHosting,
        'base_url' => $isHosting
            ? 'https://domainkamu.com'
            : 'http://localhost:8080/kemkempertadi-api',
    ],

    'db' => [
        'host' => $isHosting ? 'localhost' : 'localhost',
        'port' => '3306',
        'name' => $isHosting ? 'kemkempe_kemkempertadi_db' : 'kemkempertadi',
        'user' => $isHosting ? 'kemkempe_kemkempertadi_user' : 'kemkempertadi_user',
        'pass' => $isHosting ? 'PertadiDB2026!' : 'PertadiDB2026!',
    ],

    'midtrans' => [
        'sandbox' => 'Mid-server-svn8ig28BGFimzZ5CtN8jjML',
        'production' => 'Mid-server-_iUgPPZ1MqK_EAPJzMZ4FSY3'
    ],


    'rajaongkir' => [
        'mode' => 'sandbox', // (ganti ke 'live' kalau siap)

        'sandbox' => [
            'base_url' => 'https://api-sandbox.collaborator.komerce.id',
            'api_key' => 'cXfywasoe473ef7679014271JwFgazFW'
        ],

        'live' => [
            'base_url' => 'https://api.collaborator.komerce.id',
            'api_key' => 'ISI_API_KEY_LIVE'
        ]
    ]
];