We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6051d0 commit 36505e6Copy full SHA for 36505e6
pages/projects/[id].tsx
@@ -127,6 +127,7 @@ interface StaticProps {
127
128
// get project info
129
export async function getStaticProps(props: StaticProps) {
130
+ console.log("Fetching projects in projects/[id]")
131
const { params } = props;
132
const pageQuery = `{
133
project: projectCollection (where:{slug:"${params.id}"}, limit:1) {
@@ -190,6 +191,7 @@ export async function getStaticProps(props: StaticProps) {
190
191
}`;
192
193
const res = await contentful.query(pageQuery);
194
+ console.log("RES", res);
195
const projectData = res.project.items[0];
196
197
interface ProjectImages {
0 commit comments