Skip to content

Commit f641208

Browse files
committed
adding urlRewrite hook documentation
1 parent f5cebf8 commit f641208

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ module.exports.handler = serverless(service)
141141
},
142142
// Optional "prefix rewrite" before request is forwarded. Default value: ''
143143
prefixRewrite: '',
144+
// Optional "url rewrite" hook. If defined, the prefixRewrite setting is ignored.
145+
urlRewrite: (req) => req.url,
144146
// Remote HTTP server URL to forward the request.
145147
// If proxyType = 'lambda', the value is the name of the Lambda function, version, or alias.
146148
target: 'http://localhost:3000',

0 commit comments

Comments
 (0)