Skip to content

Commit 36505e6

Browse files
authored
Update [id].tsx
1 parent e6051d0 commit 36505e6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pages/projects/[id].tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ interface StaticProps {
127127

128128
// get project info
129129
export async function getStaticProps(props: StaticProps) {
130+
console.log("Fetching projects in projects/[id]")
130131
const { params } = props;
131132
const pageQuery = `{
132133
project: projectCollection (where:{slug:"${params.id}"}, limit:1) {
@@ -190,6 +191,7 @@ export async function getStaticProps(props: StaticProps) {
190191
}`;
191192

192193
const res = await contentful.query(pageQuery);
194+
console.log("RES", res);
193195
const projectData = res.project.items[0];
194196

195197
interface ProjectImages {

0 commit comments

Comments
 (0)