postmanlabs / postman-blog

MIT License
6 stars 5 forks source link

[WEBSITES-537] Newsletter - formProxy API #448

Closed oswish closed 4 years ago

oswish commented 4 years ago

Branched from develop, this isolates set up for the Newsletter form by using a proxyForm API; an incremental step. Also, it uses bff logic to cache the MktoForms2 library local to the app, eliminating a live call (over the wire) dependency.

I developed (& tested) it locally using Gatsby build & serve; building w/: MUNCHKIN_ID=SECRET NEWSLETTER_FORM_ID=SECRET GATSBY_ALGOLIA_APP_ID=SECRET GATSBY_ALGOLIA_SEARCH_KEY=SECRET ALGOLIA_ADMIN_KEY=SECRET RSS_URL=https://f3c7231b-164a-47d2-b0ad-0758e71f9ce6.mock.pstmn.io/sub-processors/json npm run build

The next PR will import a (bff) runtime utility that wraps the isolated logic up, so it doesn't need to be native to the app; utility to be reused on www.

*no visuals (looks the same as before)