This package has been deprecated

Author message:

This functionality is now built into Architect

@architect/macro-proxy

1.0.0 • Public • Published

arc-macro-proxy

Change the default route handler to utilize API Gateway's HTTP proxy.

Usage

@app
myapp

@macros
architect/macro-proxy

# example lambda handler
@http
get /foo 

# setup proxy for all other traffic
@proxy
staging https://dev.example.com
production https://example.com

Demo

This macro is also a demo!

Check out app.arc for example usage proxying Heroku.

Proxied to Heroku: https://9evs31ausg.execute-api.us-east-1.amazonaws.com Lambda strangler! https://9evs31ausg.execute-api.us-east-1.amazonaws.com/foo

Readme

Keywords

none

Package Sidebar

Install

npm i @architect/macro-proxy

Weekly Downloads

1

Version

1.0.0

License

Apache-2.0

Unpacked Size

2.52 kB

Total Files

6

Last publish

Collaborators

  • architectci
  • brianleroux
  • dam
  • filmaj
  • kborchers
  • ryanblock