Skip to content

Commit

Permalink
Testing netlify redirects for images in members page
Browse files Browse the repository at this point in the history
  • Loading branch information
j-hariharan committed May 18, 2024
1 parent ef2b89d commit 655611e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions public/_redirects
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/strapi/* http://3.26.93.132/:splat 200
4 changes: 3 additions & 1 deletion src/components/members/MemberCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ export default function MemberCard ({ member }) {
let { name, sig, posts, github_id, linkedin_id, mail_id, image } = member


let imageURL = process.env.STRAPI_BASE_URL + image.data.attributes.formats.thumbnail.url

let imageURL = "/strapi" + image.data.attributes.formats.thumbnail.url
// console.log(imageURL)
let postsArray = posts.data.length ? posts.data.map(post => post.attributes.title) : ["Member"]

let [ showSocials, setShowSocials ] = useState(null)
Expand Down

0 comments on commit 655611e

Please sign in to comment.