Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: separate hard quote exports #283

Merged
merged 1 commit into from
Mar 8, 2024
Merged

Conversation

marktoda
Copy link
Collaborator

@marktoda marktoda commented Mar 8, 2024

previously hard quote injector was built in the same index exports file
as the indicative quote injector, causing even indicative quote setup to
require a KMS_KEY_ID environment variable. This commit separates the
export into a separate file to decouple the env pulling.

Future improvement should do this same separation for rest of the
lambdas as well instead of having a global handlers/index

previously hard quote injector was built in the same index exports file
as the indicative quote injector, causing even indicative quote setup to
require a KMS_KEY_ID environment variable. This commit separates the
export into a separate file to decouple the env pulling.

Future improvement should do this same separation for rest of the
lambdas as well instead of having a global handlers/index
@marktoda marktoda force-pushed the separate-hard-quote-exports branch from 28219bc to ea9664d Compare March 8, 2024 15:55
@@ -0,0 +1,9 @@
import { QuoteHandler } from './handler';
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

had to move out of index.ts else the injector/handler would be built from unit tests, requiring env variables etc. whenever we do `import { QuoteHandler } from 'hard-quote';

@marktoda marktoda merged commit f49b28c into main Mar 8, 2024
5 checks passed
@marktoda marktoda deleted the separate-hard-quote-exports branch March 8, 2024 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants