Skip to content

Commit

Permalink
feat(project): add jwDev script
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonLantukh committed Feb 9, 2024
1 parent 3e3e2b1 commit 011a1ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions packages/common/src/services/ConfigService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import ApiService from './ApiService';

@injectable()
export default class ConfigService {
private CONFIG_HOST = env.APP_API_BASE_URL;
// Explicitly set default config here as a local variable,
// otherwise if it's a module level const, the merge below causes changes to nested properties
private DEFAULT_CONFIG: Config = {
Expand Down Expand Up @@ -61,9 +60,8 @@ export default class ConfigService {
if (!source) {
return undefined;
}

if (source.match(/^[a-z,\d]{8}$/)) {
return `${this.CONFIG_HOST}/apps/configs/${source}.json`;
return `${env.APP_API_BASE_URL}/apps/configs/${source}.json`;
}

return source;
Expand Down
1 change: 1 addition & 0 deletions platforms/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
},
"scripts": {
"start": "vite",
"start:jwdev": "vite --mode jwdev",
"start:test": "vite build --mode test && vite preview --port 8080",
"build": "vite build --mode ${MODE:=prod} && sh scripts/compressIni.sh build/public/.webapp.ini",
"lint:ts": "tsc --pretty --noEmit -p ./ && tsc --pretty --noEmit -p ./test-e2e",
Expand Down

0 comments on commit 011a1ba

Please sign in to comment.