-
Notifications
You must be signed in to change notification settings - Fork 47
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
Not working with serverless-esbuild #92
Comments
Can you try swapping the Also try adding |
I've experienced the same Issue. Works fine when deploying to AWS but not with serverless offline. export const swaggerUI = {
name: "swagger-ui",
handler: "swagger/swagger-html.handler",
disableLogs: true,
events: [
{
http: {
method: "get",
path: "swagger-ui",
},
},
],
};
export const swaggerJSON = {
name: "swagger-json",
handler: "swagger/swagger-json.handler",
disableLogs: true,
events: [
{
http: {
method: "get",
path: "swagger-ui.json",
},
},
],
}; |
Hmm. That's good to know. The documentation that I sort of inherited said this was specific to Serverless 2, but seeing as you are using Serverless 3 I'll have to update those docs at some point. Thanks! Would you mind if I close this as there is a solution? |
I'm trying this plugin out as i have a function id like to build swagger docs for. However there is no endpoint being created. I wonder if this works with
serverless-ebuild
. serverless-esbuild is whats used in the latset aws-nodejs-typescript template. This project was bootstrapped usingserverless create --template aws-nodejs-typescript --path api
serverless.ts
CollectionsHandler
When i run
sls offline --stage dev
there is no /dev/swagger function/endpoint createdThe text was updated successfully, but these errors were encountered: