feat: runtime config via DB — ganti VITE_URL_API_DESA_PLUS dengan proxy
- Tambah model AppConfig (key-value) ke schema + migration - Tambah GET/PUT /api/admin/config (DEVELOPER only) - Tambah proxy /api/proxy/desa-plus/* yang baca URL dari DB - Hapus VITE_URL_API_DESA_PLUS dari frontend, ganti semua URL desa-plus ke relative proxy path - Aktifkan Settings tab di /dev dengan UI untuk set URL_API_DESA_PLUS URL desa-plus kini bisa diubah via /dev → Settings tanpa rebuild image. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -13,6 +13,8 @@ RUN bunx prisma generate
|
||||
|
||||
# Build frontend (Vite → dist/)
|
||||
FROM prisma AS builder
|
||||
ARG VITE_URL_API_DESA_PLUS
|
||||
ENV VITE_URL_API_DESA_PLUS=$VITE_URL_API_DESA_PLUS
|
||||
COPY . .
|
||||
RUN bun run build
|
||||
|
||||
|
||||
Reference in New Issue
Block a user