use same s3 for images

master
lza_menace 2 years ago
parent 04ef3bdecf
commit a02efb6154

@ -28,7 +28,7 @@
"build": "react-scripts build", "build": "react-scripts build",
"test": "react-scripts test", "test": "react-scripts test",
"eject": "react-scripts eject", "eject": "react-scripts eject",
"release": "react-scripts build && aws s3 sync build/ s3://unaboomer-prod-web-origin/ --delete", "release": "react-scripts build && aws s3 sync build/ s3://unaboomer-prod-web-origin/",
"release-dev": "react-scripts build && rsync -avzP build/ lzahq:/srv/lzahq.tech/public/rando/" "release-dev": "react-scripts build && rsync -avzP build/ lzahq:/srv/lzahq.tech/public/rando/"
}, },
"eslintConfig": { "eslintConfig": {

@ -348,8 +348,8 @@ export function Hero(props) {
<div className="ownedTokens"> <div className="ownedTokens">
{JSON.parse(tokensMinted).filter((item, index) => JSON.parse(tokensMinted).indexOf(item) === index).map((id, idx) => ( {JSON.parse(tokensMinted).filter((item, index) => JSON.parse(tokensMinted).indexOf(item) === index).map((id, idx) => (
<div className="ownedToken" key={idx}> <div className="ownedToken" key={idx}>
<a href={'http://unaboomer-images.s3-website-us-west-2.amazonaws.com/' + String(id).padStart(5, '0') + '.png'} target='_blank'> <a href={'https://unaboomer.gg/images/' + String(id).padStart(4, '0') + '.png'} target='_blank'>
<img src={'http://unaboomer-images.s3-website-us-west-2.amazonaws.com/' + String(id).padStart(5, '0') + '.png'} width="80px" /> <img src={'https://unaboomer.gg/images/' + String(id).padStart(4, '0') + '.png'} width="80px" />
</a> </a>
</div> </div>
) )

Loading…
Cancel
Save