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

serverless-plugin-static-env

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

serverless-plugin-static-env

Replace environment variables with static strings before deployment. It is for Lambda @ Edge.

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
534
increased by3.09%
Maintainers
1
Weekly downloads
 
Created
Source

serverless npm version License: MIT

Static Env ServerlessFramework Plugin

This plugin is is intended for use with Lambda@Edge to replace process.env and other similar mechanisms referencing environment variables with static values so that environment specific configuration can be used in Lambda@Edge (which does not support environment variables).

This is forked from serverless-plugin-embedded-env-in-code with the intention of taking a slightly different approach to the same problem.

This is work in progress, if you're looking for a working solution use serverless-plugin-embedded-env-in-code.

Approach Difference

Rather than using string substution, the intent is to load the module and replace it with a static version of it's exports using the built in serverless environment options.

The idea is this will provide a more consistent flow with other lambdas (specifying environment on the provider or function) and also allow less constraints on the configuration file.

Keywords

FAQs

Package last updated on 30 Dec 2020

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