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(ta-1105): add bundling options to authenticated api #89

Conversation

mike-dean-talis
Copy link
Contributor

@mike-dean-talis mike-dean-talis commented Jul 18, 2024

Description

Whilst working on the new bookmarking extension API, we need to include jsdom in a lambda function. jsdom does not bundle correctly and requires extra options to help this along. Currently the AuthenticatedApiFunction does not expose the CDK bundling options.

Change

  • Expose the bundling options for an AuthenticatedApiFunction

@@ -11,4 +11,5 @@ export interface AuthenticatedApiFunctionProps {
vpcSubnets?: ec2.SubnetSelection;
securityGroups?: Array<ec2.ISecurityGroup>;
memorySize?: number;
bundling?: BundlingOptions;
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this type correct? I've just had a quick look at the docs and was expecting to see something related to externalModules & nodeModules.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

comment: Good catch. I had imported the wrong thing.

@mike-dean-talis mike-dean-talis merged commit d5f3b65 into main Jul 18, 2024
13 checks passed
@mike-dean-talis mike-dean-talis deleted the ta-1105-add-bundling-options-to-authenticated-api-function branch July 18, 2024 09:25
@talisaspire
Copy link
Collaborator

🎉 This PR is included in version 3.3.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants