Skip to content

Commit 9e7263e

Browse files
committed
change request transformation
1 parent 1696cc7 commit 9e7263e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cloudformation/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -800,6 +800,9 @@ Resources:
800800
exports.handler = async (event) => {
801801
const request = event.Records[0].cf.request;
802802
const uri = request.uri;
803+
if (uri === '/docs') {
804+
request.uri = "/docs/index.html";
805+
}
803806
if (!uri.startsWith('/api') && !uri.match(/\.\w+$/)) {
804807
request.uri = "/index.html";
805808
}

0 commit comments

Comments
 (0)