From 50f313583b2eb468e04b3a734f7d474f7da3b611 Mon Sep 17 00:00:00 2001 From: JKKIM Date: Fri, 6 Jan 2023 11:21:58 +0900 Subject: [PATCH] =?UTF-8?q?#1=20TIL:=20=EB=8F=99=EC=A0=81=20=EA=B2=BD?= =?UTF-8?q?=EB=A1=9C=20=EC=84=B8=EA=B7=B8=EB=A8=BC=ED=8A=B8=20=EC=A0=91?= =?UTF-8?q?=EA=B7=BC=20=EB=B0=A9=EB=B2=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/portfolio/[projectid].js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pages/portfolio/[projectid].js b/pages/portfolio/[projectid].js index e41bc9160..5bc6e2288 100644 --- a/pages/portfolio/[projectid].js +++ b/pages/portfolio/[projectid].js @@ -1,4 +1,15 @@ +import router, { useRouter } from "next/router"; + const PortfolioProjectPage = () => { + const router = useRouter(); + + console.log("router.pathname: ", router.pathname); + console.log("router.query: ", router.query); + console.log("router.query.: ", router.query.projectid); + + // send a request to some backend server + // to fetch the piece of data with an id of router.query.projectid + return (

The Portfolio Project Page