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](https://private-user-images.githubusercontent.com/49922/259324920-1f52d88c-cb0b-46fb-8091-1f4d575da5c9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE2MjY4NTEsIm5iZiI6MTcyMTYyNjU1MSwicGF0aCI6Ii80OTkyMi8yNTkzMjQ5MjAtMWY1MmQ4OGMtY2IwYi00NmZiLTgwOTEtMWY0ZDU3NWRhNWM5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzIyVDA1MzU1MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTlkYmUzMTY5OGY4NTFhZjY1MjdhZGU3NWFkMjJhMGIyYjdhNWI4NTMwMTA0ZTNiODM2MDM0MmFkM2NiMGZmNWMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.S9iTYlt7w1uKfLOEIrUk43xE4IA_TwIFK4CrkU0fhpo)
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