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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user