1回答
- 新しい順
- 投票が多い順
- コメントが多い順
0
I solved this problem.
First, I had associated the function with the wrong distribution.
Second, to make a change to one directory in the path, I used the following function:
function handler(event) {
var request = event.request;
var uri = request.uri;
//Check whether the URI is bad.
if (uri.includes('xxx-xxx-gt')) {
var uriArray = request.uri.split('/');
//Change the bad dir to the '18' dir in the URI
uriArray[3] = 18;
request.uri = uriArray.join('/');
}
return request;
}
I hope this helps someone else.
回答済み 3年前
関連するコンテンツ
- AWS公式更新しました 2年前