Skip to content

serverless-auto-swagger is not working on deployed environment (but works locally) #146

@jchj108

Description

@jchj108
Image

I'm using serverless-auto-swagger with Serverless Framework v3 and Node.js 20. Everything was working fine until recently. Now, my deployed development environment’s Swagger UI suddenly stopped working, even though:

It still works correctly on my local environment.

I have not made any recent changes to the code or configuration that would affect Swagger.

The rest of the APIs are functioning normally in the deployed environment.

I do not see any relevant errors in the logs.

When I access the Swagger page in the deployed environment, it either fails to load or shows mixed-content/CORS-like errors in the console (though my API endpoints themselves are fine). Could you please help me figure out what might be causing this? Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions