multi page react web app .jpg and .ttf files not rendering on amplify #13258
Labels
Hosting
Issues related to Amplify Hosting
pending-response
Issue is pending response from the issue requestor
question
General question
Before opening, please confirm:
JavaScript Framework
React
Amplify APIs
REST API
Amplify Version
v6
Amplify Categories
hosting
Backend
Other
Environment information
Describe the bug
I downloaded some custom fonts (.ttf) and images from online and have them stored as assets on my react app that is hosted on amplify. the fonts and images show on localhost but not on the amplify domain. any ideas as to how i can fix this.
ive tried adding the redirect below but it still isnt working (from aws-amplify/amplify-hosting#2849)
</^[^.]+$|.(?!(css|gif|ico|jpg|js|png|txt|svg|woff|woff2|ttf|map|json|webp)$)([^.]+$)/>
Expected behavior
On my machine the fonts and images load correctly however they do not render on the amplify site.
Reproduction steps
Code Snippet
// Put your code below this line.
</^[^.]+$|.(?!(css|gif|ico|jpg|js|png|txt|svg|woff|woff2|ttf|map|json|webp)$)([^.]+$)/>
The text was updated successfully, but these errors were encountered: