api: フロントエンドのAPI URLを本番ドメインにハードコード

シングルユーザー運用のため env フォールバックを廃止し、
APIオリジンを https://api.altdock.app.amania.jp に固定した。
- dashboard.ts / PublicSourceView.tsx の localhost:4000 フォールバックを削除
- API側 config.ts の PUBLIC_BASE_URL/WEB_ORIGIN デフォルトも本番ドメインに
- compose/web の NEXT_PUBLIC_API_BASE_URL 環境変数を削除(コード固定のため)
This commit is contained in:
amania-jailbreak
2026-08-05 14:07:18 +09:00
parent 236a08c865
commit 54cb335d66
5 changed files with 8 additions and 7 deletions
+2 -1
View File
@@ -12,7 +12,8 @@ type SourceDocument = {
apps: Array<{ name: string; bundleIdentifier: string; developerName: string; subtitle?: string; localizedDescription: string; iconURL?: string; category: string; versions: Array<{ version: string; buildVersion: string; date: string; downloadURL: string; size: number }> }>;
};
const API_BASE = process.env.NEXT_PUBLIC_API_BASE_URL || "http://localhost:4000";
// Single-user deployment: hard-code the public API origin.
const API_BASE = "https://api.altdock.app.amania.jp";
function formatBytes(value: number) {
if (!value) return "0 B";