Fix: Data inconsistency pada transisi tahun/bulan dan setup API lokal untuk testing
- Fix deteksi transisi bulan untuk semua bulan (tidak hanya 1 Januari) - Perbaikan validasi data dengan threshold 20% untuk transisi bulan/tahun - Auto-reset chart jika data hourly tidak valid - Setup force local mode untuk testing API lokal - Perbaikan normalisasi dan validasi tanggal - Enhanced logging untuk debugging transisi
This commit is contained in:
@@ -6,16 +6,17 @@
|
||||
|
||||
## Cara Kerja
|
||||
|
||||
File `config.js` akan auto-detect environment berdasarkan hostname:
|
||||
File `config.js` akan **auto-detect** environment berdasarkan hostname:
|
||||
|
||||
### Development Lokal
|
||||
- Jika hostname = `localhost`, `127.0.0.1`, atau IP lokal (`192.168.x.x`)
|
||||
- Base URL default: `http://localhost/api-btekno/public`
|
||||
- **Sesuaikan** dengan path API backend di Laragon/XAMPP Anda
|
||||
### Development Lokal (Auto-detect)
|
||||
- Jika hostname = `localhost`, `127.0.0.1`, atau IP lokal (`192.168.x.x`, `10.x.x.x`, `172.x.x.x`)
|
||||
- Base URL: `http://localhost/api-btekno/public`
|
||||
- **Otomatis** menggunakan API lokal saat development
|
||||
|
||||
### Production
|
||||
- Jika hostname bukan localhost
|
||||
### Production (Auto-detect)
|
||||
- Jika hostname bukan localhost/IP lokal
|
||||
- Base URL: `https://api.btekno.cloud`
|
||||
- **Otomatis** menggunakan API produksi saat di production
|
||||
|
||||
## Cara Mengubah Base URL
|
||||
|
||||
|
||||
Reference in New Issue
Block a user