Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
GiladSchneider committed Nov 21, 2024
1 parent 1162fdd commit 0d993ab
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import devConfig from '../.env/development.json';
// import testingConfig from '../.env/testing.json';
import testingConfig from '../.env/testing.json';
import { getAuth0Token } from '../src/shared';
import { ZambdaClient } from '@zapehr/sdk';

Expand Down Expand Up @@ -37,9 +37,9 @@ const main = async (): Promise<void> => {
case 'development':
await setupSecrets(devConfig);
break;
// case 'testing':
// await setupSecrets(testingConfig);
// break;
case 'testing':
await setupSecrets(testingConfig);
break;
default:
throw new Error('¯\\_(ツ)_/¯ environment must match a valid zapEHR environment.');
}
Expand Down
2 changes: 1 addition & 1 deletion packages/telemed-intake/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"build:development": "tsc && vite build --mode development",
"build": "tsc && vite build",
"deploy:development": "ENV=development PREFIX=development CLOUDFRONT_ID=EIYX001DGGQK8 pnpm run ci-deploy-skeleton",
"deploy:development": "ENV=testing PREFIX=testing CLOUDFRONT_ID=E2IMNWB48TKHJO pnpm run ci-deploy-skeleton",
"deploy:testing": "ENV=testing PREFIX=testing CLOUDFRONT_ID=E2IMNWB48TKHJO pnpm run ci-deploy-skeleton",
"ci-deploy-skeleton": "ENV=${ENV} VITE_APP_SHA=${GIT_HEAD:-$(git rev-parse --short HEAD)} VITE_APP_VERSION=$(node -pe 'require(\"./package.json\").version') pnpm run build:${ENV} && aws s3 sync build/ s3://telemed.ottehr.com --region us-east-1 --delete && aws cloudfront create-invalidation --distribution-id ${CLOUDFRONT_ID} --paths '/*' --region us-east-1"
},
"dependencies": {
Expand Down
8 changes: 4 additions & 4 deletions packages/telemed-intake/zambdas/scripts/common.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import devConfig from '../.env/development.json';
// import testingConfig from '../.env/testing.json';
import testingConfig from '../.env/testing.json';
import { FhirClient, ZambdaClient } from '@zapehr/sdk';
import { getM2MClientToken } from '../src/shared';

Expand All @@ -10,9 +10,9 @@ export const performEffectWithEnvFile = async (callback: (config: any) => void)
case 'development':
await callback(devConfig);
break;
// case 'testing':
// await callback(testingConfig);
// break;
case 'testing':
await callback(testingConfig);
break;
default:
throw new Error('¯\\_(ツ)_/¯ environment must match a valid zapEHR environment.');
}
Expand Down

0 comments on commit 0d993ab

Please sign in to comment.