Choose Deploy API:
prod.
On the Stages page:
prod is created.
Save the API in CloudShell, write the URL into v3/Site/js/config.js and upload v3:
echo 'export API_ID=<api-id>' >> ~/chat.env
echo 'export API_URL=https://<api-id>.execute-api.ap-northeast-1.amazonaws.com/prod' >> ~/chat.env && source ~/chat.env
cd ~/ws2-chatapp && sed -i "s#^ChatApp.apiEndpoint.*#ChatApp.apiEndpoint = '$API_URL';#" v3/Site/js/config.js
aws s3 cp v3/Site/js/ s3://$BUCKET/js/ --recursive --exclude '*desktop.ini' --only-show-errors
config.js now points to your API.config.js and site.js are uploaded.
Reload chats.html. The list looks the same, but the data now comes from GET /conversations of the API, not from the JSON file.