nico 51ce823b45 Fix: Use window.location.origin for API base URL in browser
treaty from @elysiajs/eden doesn't support relative URLs like '/'
This caused 'ERR_NAME_NOT_RESOLVED' when trying to access 'https://api/fileStorage/create'

Solution:
- Client-side: Use window.location.origin (e.g., https://desa-darmasaba-stg.wibudev.com)
- Server-side dev: Use localhost:3000
- Server-side prod: Use NEXT_PUBLIC_BASE_URL env var

This ensures the API calls use the correct domain in all environments.

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-12 14:14:55 +08:00
2025-02-23 22:47:51 +08:00
2025-05-19 17:00:43 +08:00
2025-02-15 21:56:18 +08:00
2026-03-10 10:56:15 +08:00
2026-03-06 11:19:45 +08:00
2026-03-10 11:04:44 +08:00
2025-02-16 16:01:12 +08:00
2026-03-12 12:11:10 +08:00
2025-02-15 21:56:18 +08:00
2026-03-06 10:31:19 +08:00
2025-12-16 10:19:15 +08:00
2025-02-21 06:40:29 +08:00
2025-05-23 11:33:59 +08:00
2025-02-15 21:56:18 +08:00
2026-02-05 12:34:31 +08:00
2026-02-05 12:34:31 +08:00
2025-02-16 16:01:12 +08:00
2025-02-16 16:01:12 +08:00
2026-01-23 16:51:35 +08:00
2025-07-18 17:42:10 +08:00

Failed to Generate README

Description
No description provided
Readme 39 MiB
Languages
TypeScript 99.4%
HTML 0.4%