#!/bin/bash # Update the Amplify app's rewrite rule for SPAs, including wasm for openjphjs if [ ! -z ${AWS_APP_ID} ]; then aws amplify update-app \ --app-id ${AWS_APP_ID} \ --custom-rules '[{"source":"","status":"200","target":"/index.html","condition":""}]' fi