You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
serverless-offline strips trailing slashes from URL, so accessing http://localhost:8000/admin/ in the browser translates into http://localhost:8000/admin for the backend that is running with serverless-offline.
Expected behavior/code
URLs ending with slash should have the slash on backend and URLs without shouldn't have. In other words, serverless-offline shouldn't add or remove trailing slash. Or at least there should be an option for this behaviour.
Environment
serverless version: 3.2.0
serverless-offline version: 13.3.0
node.js version: v20.9.0
OS: Fedora 39
optional, if you are using any of the following frameworks to invoke handlers
python version: v3.9.18
django version: 4.2
Possible Solution
Add an option for this.
Additional context/Screenshots
There was noStripTrailingSlashInUrl in older versions of serverless-offline but it got removed. I have no idea what was the reason: 71ee21d
The text was updated successfully, but these errors were encountered:
Bug Report
Current Behavior
serverless-offline strips trailing slashes from URL, so accessing
http://localhost:8000/admin/
in the browser translates intohttp://localhost:8000/admin
for the backend that is running with serverless-offline.Expected behavior/code
URLs ending with slash should have the slash on backend and URLs without shouldn't have. In other words, serverless-offline shouldn't add or remove trailing slash. Or at least there should be an option for this behaviour.
Environment
serverless
version: 3.2.0serverless-offline
version: 13.3.0node.js
version: v20.9.0OS
: Fedora 39optional, if you are using any of the following frameworks to invoke handlers
python
version: v3.9.18django
version: 4.2Possible Solution
Add an option for this.
Additional context/Screenshots
There was
noStripTrailingSlashInUrl
in older versions of serverless-offline but it got removed. I have no idea what was the reason: 71ee21dThe text was updated successfully, but these errors were encountered: