Skip to content

Commit df2e512

Browse files
authored
fix(config): update horizon URL to a static endpoint (#16)
1 parent 9dbf7cf commit df2e512

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export const horizon = {
2-
url: `https://${process.env.NODE_ENV === 'production' ? 'horizon' : 'dev-horizon'}.hyphen.ai/toggle`,
2+
url: `https://horizon.hyphen.ai/toggle`,
33
};
44

55
export const horizonEndpoints = {

tests/config.test.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,6 @@ describe('Config', () => {
1818
const { horizon } = await import('../src/config');
1919
expect(horizon.url).toBe('https://horizon.hyphen.ai/toggle');
2020
});
21-
22-
it('should use dev URL when NODE_ENV is not production', async () => {
23-
process.env.NODE_ENV = 'development';
24-
const { horizon } = await import('../src/config');
25-
expect(horizon.url).toBe('https://dev-horizon.hyphen.ai/toggle');
26-
});
2721
});
2822

2923
describe('cache', () => {

0 commit comments

Comments
 (0)