Skip to content

Commit

Permalink
chore: load env files for client
Browse files Browse the repository at this point in the history
  • Loading branch information
blakebyrnes committed Apr 20, 2024
1 parent a90affe commit 0910574
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions client/env.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { loadEnv, parseEnvPath } from '@ulixee/commons/lib/envUtils';
import * as Path from 'path';

loadEnv(Path.join(__dirname, '..', 'core'));
loadEnv(Path.join(__dirname, '..', 'hero-core'));

const env = process.env;

if (env.ULX_DATA_DIR) env.ULX_DATA_DIR = parseEnvPath(env.ULX_DATA_DIR);
1 change: 1 addition & 0 deletions client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import { Command } from './interfaces/IInteractions';
import { Hero, HeroReplay, FrameEnvironment, Tab, Resource, WebsocketResource } from './lib/extendables';
import ConnectionToHeroCore from './connections/ConnectionToHeroCore';
import DetachedElement from './lib/DetachedElement';
import './env';

export default Hero;

Expand Down

0 comments on commit 0910574

Please sign in to comment.