From 47ffa58c65360c684514a54aa5435bec1b900000 Mon Sep 17 00:00:00 2001 From: Ethan <96821054+Ethanol48@users.noreply.github.com> Date: Mon, 15 May 2023 17:03:09 +0200 Subject: [PATCH] Use client side rendering this resolves an error in the deployment of the website that occurs for projects with next.js version 13 --- NFT-Collection.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NFT-Collection.md b/NFT-Collection.md index 4d1c112..6268530 100644 --- a/NFT-Collection.md +++ b/NFT-Collection.md @@ -243,6 +243,8 @@ Let's deploy the contract to the `goerli` network. Create a new file, or replace Let's write some code to deploy the contract in `deploy.js` file. ```js +"use client"; + const { ethers } = require("hardhat"); require("dotenv").config({ path: ".env" }); const { WHITELIST_CONTRACT_ADDRESS, METADATA_URL } = require("../constants");