Skip to content

Commit

Permalink
Added a redirect for images to show up in Amplify (#918)
Browse files Browse the repository at this point in the history
Without the redirect images are not displaying in Amplify after deploying. Once added the redirect all PNGs showed up.
  • Loading branch information
rasensio authored and anikethsaha committed Dec 20, 2019
1 parent daf54b9 commit 808123b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,10 @@ frontend:
```

6. Add the following Redirect rules in their displayed order.
6. Add the following Redirect rules in their displayed order. Note that the second record is a PNG image where you can change it with any image format you are using.

| Source address | Target address | Type |
|----------------|----------------|---------------|
| /<*>.md | /<*>.md | 200 (Rewrite) |
| /<*>.png | /<*>.png | 200 (Rewrite) |
| /<*> | /index.html | 200 (Rewrite) |

0 comments on commit 808123b

Please sign in to comment.