aave / interface

An open source interface for the decentralized liquidity protocol Aave

Home Page:https://app.aave.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

README instructions for local development do not work

miohtama opened this issue · comments

Describe the bug

After following the README instructions for local development, the localhost:3000 development instance is non-functional.

To Reproduce

cp .env.example .env
yarn install
yarn dev

However, when opening the localhost:3000, it does not load any data and is stuck in skeleton loaders.

Expected behavior

localhost:3000 homepage opens is useable.

Screenshots

image

Additional context

Console errors

Access to fetch at 'https://aave-api-v2.aave.com/addresses/status?address=0x9cc9c3de8e710781983a65b90b7efeaad2d3d7d8' from origin 'http://localhost:3000' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header has a value 'https://app.aave.com' that is not equal to the supplied origin. Have the server send the header with a valid value, or, if an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
aave-api-v2.aave.com/addresses/status?address=0x9cc9c3de8e710781983a65b90b7efeaad2d3d7d8:1     

... and many others.

Hey @miohtama, it looks like the example env file contains the config for running the interface against a fork. Try deleting these lines from your .env:

NEXT_PUBLIC_FORK_BASE_CHAIN_ID=1
NEXT_PUBLIC_FORK_CHAIN_ID=1
NEXT_PUBLIC_FORK_URL_RPC=https://rpc.tenderly.co/fork/1234567

We could probably update the readme to make that clear