ThatAIguyA world of ideas

THE CONSCIOUSNESS ATLAS
Read. Experiment. Follow the evidence.

ConsciousnessLearn · Explore · Joseph Anady

Janady13/llms-txt-hub / packages/utils/get-base-url.ts

Source identity, revision, and recovered contents.

GitHub sourceSource text recovered

Source identity

FieldRecorded value
Source typeGitHub source
Original recordJanady13/llms-txt-hub / packages/utils/get-base-url.ts
DateNot specified in source
RepositoryJanady13/llms-txt-hub
Revisione0f4bf978d4df168369c7601d9c5f5ea89e84377
Branchmain
Path or archive memberpackages/utils/get-base-url.ts
Original SHA-25651452164d570165b2a8194e0fd3f90f3d1bb46077dd9169d0ee383ab3e47248c
Git blob SHA853962412391d9fc96fd86f0e73429a99b2308a0
Reading-copy SHA-25651452164d570165b2a8194e0fd3f90f3d1bb46077dd9169d0ee383ab3e47248c

Original source ↗

Recovered source transcript

/** * Returns the base URL for the application based on the current environment. * Automatically detects Vercel deployment URLs and falls back to development URL. * * @returns The base URL for the application * * @example * ```ts * const baseUrl = getBaseUrl() * // Returns 'https://your-domain.vercel.app' in production * // Returns 'http://localhost:3000' in development * ``` */ export function getBaseUrl(): string { // Custom domain URL if (process.env.NEXT_PUBLIC_WEB_URL) { return process.env.NEXT_PUBLIC_WEB_URL } // Vercel deployment URL if (process.env.VERCEL_URL) { return `https://${process.env.VERCEL_URL}` } // Development URL return 'http://localhost:3000' }

Search equations, builds, manuscript text, and recovered sources.