let cached = null;
export const JOIN_CODE_LENGTH = 8;
export function getConfig() {
    if (cached)
        return cached;
    const databaseUrl = process.env.ROOMS_DATABASE_URL;
    if (!databaseUrl)
        throw new Error("ROOMS_DATABASE_URL is not set");
    cached = {
        databaseUrl,
    };
    return cached;
}
