Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

herschel666-arc-macros-remove-local-routes

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

herschel666-arc-macros-remove-local-routes

Remove selected routes from @architect's Lambda functions before the deployment. A handy solution when you're leveraging HTTP handlers for local scaffolding tasks.

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

herschel666-arc-macros-remove-local-routes

Remove selected routes from @architect's Lambda functions before the deployment. A handy solution when you're leveraging HTTP handlers for local scaffolding tasks.

Installation

npm i herschel666-arc-macros-remove-local-routes

Usage

Add the herschel666-arc-macros-remove-local-routes to the list of macros in your .arc-file.

@app
some-app

@macros
herschel666-arc-macros-remove-local-routes

Configuration

List all the routes you don't want to be deployed below the @herschel666-arc-macros-remove-local-routes-pragma in your .arc-file. Differentation by HTTP-method isn't supported currently. So if a route is triggered by a GET-request as well as a POST-request, both respective Lambda functions will be ditched before deployment.

@app
some-app

@http
get /
post /api
get /populate-db
post /test/:thingy

@macros
herschel666-arc-macros-remove-local-routes

@herschel666-arc-macros-remove-local-routes
/populate-db
/test/:thingy

The deployed Arc app will only consist of the HTTP-handlers for get / and post /api.

License

MIT @ Emanuel Kluge

Keywords

FAQs

Package last updated on 26 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc