We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
.lottie
single-page-app
1 parent 893940b commit df50737Copy full SHA for df50737
src/constructs/aws/SinglePageApp.ts
@@ -45,7 +45,7 @@ export class SinglePageApp extends StaticWebsiteAbstract {
45
* Files extensions list taken from: https://docs.aws.amazon.com/amplify/latest/userguide/redirects.html#redirects-for-single-page-web-apps-spa
46
* Add pdf, xml, webmanifest, avif and wasm as well
47
*/
48
- const code = `var REDIRECT_REGEX = /^[^.]+$|\\.(?!(css|gif|ico|jpg|jpeg|js|png|txt|svg|woff|woff2|ttf|map|json|webp|xml|pdf|webmanifest|avif|wasm)$)([^.]+$)/;
+ const code = `var REDIRECT_REGEX = /^[^.]+$|\\.(?!(css|gif|ico|jpg|jpeg|js|png|txt|svg|woff|woff2|ttf|map|json|webp|xml|pdf|webmanifest|avif|wasm|lottie)$)([^.]+$)/;
49
50
function handler(event) {
51
var uri = event.request.uri;
0 commit comments