Error: could not detect network

I am currently trying to deploy my DApp ‘nftmarketplace’ to the net using Vercel on the Goerli test network. However the app is failing to connect to the blockchain and I am getting the following error:

Uncaught (in promise) Error: could not detect network (event="noNetwork", code=NETWORK_ERROR, version=providers/5.6.8) 

Here is my hardhat config:

const fs = require('fs'); require('@nomiclabs/hardhat-waffle');  const privateKey = fs.readFileSync('.secret').toString().trim();  module.exports = {   networks: {     goerli: {       url: '',       accounts: [privateKey],     },   },   solidity: '0.8.4', }; 

Can someone please let me know how to fix this issue?

Here is the link to the github repo if you need that:

Error: could not detect network

Shopping cart
There are no products in the cart!
Continue shopping