feat(agents): Add identity and soul template fields to board creation
This commit is contained in:
11
frontend/src/lib/api-base.ts
Normal file
11
frontend/src/lib/api-base.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
export function getApiBaseUrl(): string {
|
||||
const raw = process.env.NEXT_PUBLIC_API_URL;
|
||||
if (!raw) {
|
||||
throw new Error("NEXT_PUBLIC_API_URL is not set.");
|
||||
}
|
||||
const normalized = raw.replace(/\/+$/, "");
|
||||
if (!normalized) {
|
||||
throw new Error("NEXT_PUBLIC_API_URL is invalid.");
|
||||
}
|
||||
return normalized;
|
||||
}
|
||||
Reference in New Issue
Block a user