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:
@@ -31,7 +31,9 @@ export type Notice = {
|
||||
|
||||
export type Visibility = SourceRecord["visibility"];
|
||||
|
||||
export const API_BASE = process.env.NEXT_PUBLIC_API_BASE_URL || "http://localhost:4000";
|
||||
// Single-user deployment: hard-code the public API origin. The API is served
|
||||
// at api.altdock.app.amania.jp; there is no per-environment fallback anymore.
|
||||
export const API_BASE = "https://api.altdock.app.amania.jp";
|
||||
export const AUTH_MODE = process.env.NEXT_PUBLIC_AUTH_MODE || "demo";
|
||||
export const DEMO_HEADERS = { "x-demo-user": "demo@altdock.local" };
|
||||
|
||||
@@ -102,4 +104,3 @@ export function flattenApps(dashboard: DashboardData) {
|
||||
export function flattenReleases(dashboard: DashboardData) {
|
||||
return dashboard.sources.flatMap((entry) => entry.releases.map((release) => ({ release, source: entry.source, app: entry.apps.find((app) => app.id === release.appId) })));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user