Skip to content

Hubspot webpack serverless function template for membership protected functions

Notifications You must be signed in to change notification settings

rufiange/webpack-serverless-membership-boilerplate

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CMS webpack-bundled serverless functions boilerplate [beta]

Simple boilerplate for using webpack to bundle serverless function with third-party deps

Installation

  1. git clone this repo
  2. yarn install
  3. If you're not yet set up with the CMS CLI and have a specified defaultPortal, use yarn hs init to generate a CMS Personal Access Key.
  4. yarn build to build with webpack into /dist
  5. yarn deploy to build and deploy to defaultPortal
  6. yarn start to build, deploy, and watch/auto-upload to defaultPortal]

Additional setup for secrets in endpoints

  1. Via Settings > Integrations > API Key, copy your API key.
  2. Use hs secrets add APIKEY < your api key here> to give access to this key in your serverless functions via process.env. Read more about this feature here.

About

Hubspot webpack serverless function template for membership protected functions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%