Comments (2)
Hi @ii-igku ,
Plugins are executed in order.
What you probably want is to first transpile your middleware, then add the warmup function (so it's not transpiled) and then start the offline server (so it includes the transpiled functions and the warmup function).
So:
plugins:
- serverless-middleware
- serverless-plugin-warmup
- serverless-offline
from serverless-middleware.
hi @juanjoDiaz , thanks a lot, changing the order of plugins helped
After I put serverless-middleware
before serverless-plugin-warmup
and deployed to aws the warmup function was not embedded in the middleware wrapper anymore.
thanks for the help!
from serverless-middleware.
Related Issues (20)
- Serverless stops working after adding middleware (only in production) HOT 10
- Doesn't work with Serverless v3 HOT 3
- v1.0.0 with Serverless V3 throws error on deploy HOT 2
- Cannot do dynamic imports when using a middleware HOT 3
- Allow `nodejs16.x` HOT 1
- serverless-typescript or serverless-esbuild HOT 2
- Path of .middleware folder when searching for modules is broken with default folderName in Serverless 3.0 HOT 4
- Middleware only runs on HTTP API HOT 2
- ERR_MODULE_NOT_FOUND when using Typescript and targeting ES6 or higher HOT 2
- Issue with lambda callbacks HOT 3
- ERR_MODULE_NOT_FOUND using serverless-offline HOT 3
- Middleware function not invoked HOT 1
- Which version of the plugin serverless-middleware supports function level middleware and whats the syntax HOT 1
- not working since 3.2.0 HOT 5
- serverless-middleware incompatibility with serverless-webpack HOT 4
- Get underlying exception object on pos-catch middleware HOT 2
- I can't setup serverless middleware HOT 1
- other lambda functions are in .middleware. HOT 1
- Support for ECR images
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serverless-middleware.