Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/andrioid/techscrolls.
Something went wrong. Try again.
123456789101112131415const { searchParams } = new URL(window.location.href);
// Inserted during builddeclare const process: { env: { NODE_ENV: string } };
export const ENV = searchParams.get("env") ?? process.env.NODE_ENV;
export const PLC_DIRECTORY_URL: string | undefined = searchParams.get("plc_directory_url") ?? (ENV === "development" ? undefined : undefined);
export const HANDLE_RESOLVER_URL: string = searchParams.get("handle_resolver") ?? (ENV === "development" ? "https://bsky.social" : "https://bsky.social");