You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
To link to your payment page, you must generate a Checkout button HTML snippet for display on your site.
However, the default snippet only supports one Checkout button.
You cannot have several Checkout buttons for the same product on the same page.
This gist modifies Stripe's generated snippet to support several buttons.
AWS is notorious for it's incredibly complicated security model.
This guide will walk you through setting up a fully-featured build & upload script for your Lambda functions.
AWS Lambda - Upload node_modules without devDependencies
By default, ZIPing the project directory will included all of your devDependencies. slowing your upload speed to a crawl as you upload an enormous bundle containing 80% useless code (unless you're testing in production™ )
You only need your production dependencies when deploying, but need you devDependencies for development. But you have to deploy from the same directory, and it must be named node_modules. How can slim down the ol' deploy bundle?
Here's a horrible but effective hack that accomplishes this:
We'll create an additional directory called node_modules__prod for storing production dependencies.
When we deploy we swap the names of the dev and production node_modules directories 😱, so the deploy tool stupidly uploads what it thinks is our full node_modules but actually is our production-only modules directory.
When deploy is done (or fails) we swap the directory names again, restoring us back to developme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters