Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Address page in blockexplorer is not working on a Vercel deployment #730

Closed
Pabl0cks opened this issue Feb 15, 2024 · 2 comments
Closed

Comments

@Pabl0cks
Copy link
Collaborator

Maybe this use case does not make sense, feel free to close the issue if so 🙌

Steps to reproduce:

  • Run yarn install / yarn chain / yarn deploy in a fresh SE-2
  • Deploy into Vercel (leaving hardhat as network to have Blockexplorer).
  • Open the vercel deployed site and go to Blockexplorer.
  • Click in any of the two address from Contract creation (from / to)
Here are the vercel logs:

Error: Directory /var/hardhat/artifacts/build-info not found.
at O (/var/task/.next/server/app/blockexplorer/address/[address]/page.js:1:7191)
at z (/var/task/.next/server/app/blockexplorer/address/[address]/page.js:1:7464)
at em (/var/task/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:131226)
at /var/task/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:142926
at Array.toJSON (/var/task/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:146504)
at stringify ()
at eR (/var/task/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:134889)
at eP (/var/task/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:135332)
at AsyncLocalStorage.run (node:async_hooks:338:14)
at Timeout._onTimeout (/var/task/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:146956)

@KcPele
Copy link
Contributor

KcPele commented Mar 8, 2024

why it is not working on vercel is because hardhat is a local network which is not available on vercel
You are only deploying the frontend so u wont have access to hardhat

@Pabl0cks
Copy link
Collaborator Author

Ok! Closing this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants