• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

cartesi / rollups-explorer / 16101932136

06 Jul 2025 06:24PM UTC coverage: 88.254% (-0.2%) from 88.427%
16101932136

push

github

web-flow
Feat: Add config flexibility for containers (#360)

1653 of 1923 branches covered (85.96%)

Branch coverage included in aggregate %.

42 of 121 new or added lines in 11 files covered. (34.71%)

6 existing lines in 4 files now uncovered.

11285 of 12737 relevant lines covered (88.6%)

62.15 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

66.67
/apps/web/src/lib/getConfigExplorerAPIUrl.ts
1
import { isNilOrEmpty } from "ramda-adjunct";
1✔
2

3
/**
4
 * Return the configured public explorer-api-url.
5
 * It is meant to be used with server-side capability to provide dinamyc configuration capability for multiple
6
 * running explorers in the same host.
7
 *
8
 */
9
export const getConfiguredPublicExplorerAPI = () => {
1✔
10
    const api =
2✔
11
        process.env.EXPLORER_API_URL ||
2✔
12
        process.env.NEXT_PUBLIC_EXPLORER_API_URL;
1✔
13

14
    if (isNilOrEmpty(api)) {
2!
NEW
15
        console.warn(
×
NEW
16
            `Neither EXPLORER_API_URL nor NEXT_PUBLIC_EXPLORER_API_URL are defined. At least one is required.`,
×
NEW
17
        );
×
NEW
18
    }
×
19
    return api;
2✔
20
};
2✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc