Clean up url resolution
This commit is contained in:
committed by
pullfrog[bot]
parent
267a4586ae
commit
78cf05f111
@@ -0,0 +1,9 @@
|
||||
/**
|
||||
* resolve the Pullfrog API base URL.
|
||||
*
|
||||
* in the action: API_URL is not explicitly set, so this falls back to https://pullfrog.com.
|
||||
* in local dev: API_URL=http://localhost:3000 (from .env).
|
||||
*/
|
||||
export function getApiUrl(): string {
|
||||
return process.env.API_URL || "https://pullfrog.com";
|
||||
}
|
||||
Reference in New Issue
Block a user