-
Notifications
You must be signed in to change notification settings - Fork 417
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Discuss removing serve
command
#135
Comments
Thanks @hassankhan for bringing this up 👍 . Maintaining code and functionality that is probably not used or completely replaced by other plugins is wasted effort. |
I agree with @hassankhan. Another plugins are already focusing on simulate an API gateway and they integrate well with |
Agreed @HyperBrain, if it is indeed removed, it should definitely be a major version bump. |
I linked all open PR's that are related to the |
Ok so I do use the If I can get that figured out I'm totally fine removing the |
@Whoaa512 |
So I'm using In my webpack.entry config I have
But for some reason my baseConfig doesn't get included in the bundle when I run Not sure if I'm missing something else. |
Turns out I just needed to use So I'm fine with removing the |
We're successfully using So I'm absolutely for removing the |
Did you follow this https://github.com/dherault/serverless-offline#usage-with-serverless-offline-and-serverless-webpack-plugin? |
Ops I hadn't read #135 (comment) |
I'll tag all PRs relevant to the serve functionality with the |
According to all the feedback that we received either here or within the open PRs, it seems feasible that we remove the serve functionality. Serverless-offline can be used for anything that also could be done with serve. |
Big +1, glad to hear that |
I have been running into an issue when using lambda proxy. Testing locally with Running the function on AWS I need to run Would this be related to all of the chatter above of simulation errors? Cheers! |
@dillonbailey The Could you try to use the |
There's a difference between const body = _.isString(event.body) ? JSON.parse(event.body) : event.body; This seems to be the most reliable and robust way around different behaviors of the simulation. 🤔 |
@HyperBrain thank heaps! Will give the serverless-offline plugin a try and let you know how it goes! @arabold indeed a great little pattern to use! I think there is also a difference with |
Should we open a new issue for discussing what to do about the existing PRs for the |
I'm just about to create an issue to actually remove the serve functionality ;-) Regarding the PRs and issues related to serve, my opinion is to close all of them with a comment that references the task. Spending efforts on a feature that is about to be dropped doesn't make much sense. |
Closing this now - the removal of serve and the technical discussion is done in #152 |
Per @HyperBrain request, reposting question here: I've tried to run
instead of
In the I'm happy to troubleshoot but don't know where to start. @franciscocpg To answer your question, no it's in the format
because I'm using the The relevant pieces of my
|
I wonder if the response fails as I'm not defining a body mapping template. A template is not required though (I'm currently searching for the AWS spec I found that in a long time ago) and in the real AWS integration, a default template is used if missing. Some logs from my offline run that are perhaps of interest
|
@franciscocpg thanks good pointer, will check against there. @HyperBrain Just as a heads up, there may be more blockers for me (others?) to switch from serve to serverless. I just submitted a fix for one in dherault/serverless-offline#282 I'll try to figure out the above one. |
@bebbi Yes, that's true. Nevertheless the plugin should concentrate on the packaging. If we encounter issues, we should try to push the changes/fixes into And thanks for your engagement 🙌 |
@HyperBrain agree on approach, it's just about the transition. |
Given that
serverless-offline
andserverless-simulate
both exist, are there many users of this plugin that use the includedserve
functionality?Removing it would help a lot with code bloat, allowing the plugin to focus solely on building bundles via Webpack.
Any feedback from users would highly be appreciated, would be great to know what plugin/combinations of plugins you use for development.
The text was updated successfully, but these errors were encountered: