nawangwe / opensea-whitelabel-website-template

An Opensea website template created with Next.js and BaseUI
MIT License
28 stars 6 forks source link

I can't open it with yarn #11

Closed kali100x closed 2 years ago

kali100x commented 2 years ago

I did everything to install but all time give internal server error. Please help. Thanks. image imageimage

allenchuang commented 2 years ago

same here.. what seems to be the issue?? is it because of nextjs?

nawangwe commented 2 years ago

@allenchuang @kali100x this seems to be as a result of the opensea api protection from cloud flare, it could be that the assets api is no longer accessible without an api key from opensea as seen from here.

nawangwe commented 2 years ago

Could also be related to this

allenchuang commented 2 years ago

gotcha- solved it with API key

allenchuang commented 2 years ago

you could add OPEN_SEA_API in the env config and then just read that key wherever you call OpenSeaport like so:


  const seaport = new OpenSeaPort(provider, {
    networkName: Network.Main,
    apiKey: process.env.OPEN_SEA_API,
  });
nawangwe commented 2 years ago

@allenchuang great to hear that solved it. I'll update the repo and readme to include this, as well as update the repo for any other issues.