PatrickAlphaC / nextjs-nft-marketplace-thegraph-fcc

39 stars 33 forks source link

changed config for upload to IPFS (static build) #4

Closed arpitsingh1409 closed 1 year ago

arpitsingh1409 commented 1 year ago

I changed the default image loader to "akamai" in next.config.js as it is known to render images without help from server (client-side rendering). I have been using this method and it's very easy and simple as no code change is required, except an addition to the config file.

I have hosted my website at: ipfs://QmQKJRcqvYSCnt9YzSVdXcjpyrkW47cT9HYDhf1Tmw3KHL

or

nft-marketplace.arpit-singh.me

Both of which can only deploy a static website and my website is working very fine as of now, with images rendering as expected.

If I am still eligible for an NFT gift, for which I really appreciate @PatrickAlphaC for such an initiative, here is my address: 0x513417e1393a08b6E9D882cafE191086F131d7E1 or arpitsingh.eth

P.S. :- If you are visiting my website, please make sure that the MetaMask is connected to Rinkeby Testnet, as if your wallet is connected to another network the website will show up an error.

PatrickAlphaC commented 1 year ago

Oh!! This is great! Where did you learn that this loader is the best one?

arpitsingh1409 commented 1 year ago

Thanks a lot! I was just Googling around why Image rendering even requires server-side operations and how different loaders have different operations. I read on StackOverflow that the "akamai" loader is the best one for static websites, though for websites with server-side rendering other loaders are recommended for optimal performance.

PatrickAlphaC commented 1 year ago

Awesome! Thanks for this!! I was having such a hard time getting it to work statically, this is great!

arpitsingh1409 commented 1 year ago

Thanks a lot for your comments, Patrick! It really feels good to get complimented by such a talented and accomplished individual like you.

Sorry for being repetitive, but just asking, am I still eligible for that NFT gift? :sweat_smile:

PatrickAlphaC commented 1 year ago

What NFT gift?

arpitsingh1409 commented 1 year ago

Oh, actually in the course video you said that the first person to solve this issue (hosting to IPFS) and make a PR will get an NFT from you as a gift.

Link to that timestamp in the course video

PatrickAlphaC commented 1 year ago

Wow I totally forgot about that!!

Yes! I'm able to connect to your site!! Wow this is great!!

Ok, send me your address I'll make you a custom NFT :)

arpitsingh1409 commented 1 year ago

Thanks a lot for your kind words, Patrick.

My address is: 0x513417e1393a08b6E9D882cafE191086F131d7E1

or

arpitsingh.eth

PatrickAlphaC commented 1 year ago

https://stratosnft.io/asset/0xc1759d4027f6440A9E0A54EfBd504cE7c4Ec45f8/0

arpitsingh1409 commented 1 year ago

Thanks a ton, Patrick! I just finished the course and it was awesome and gave me so much valuable information. Again, thanks a lot for contributing so much to the community!