Skip to content

Commit

Permalink
add blog endpoint for build
Browse files Browse the repository at this point in the history
  • Loading branch information
mtrenker committed Dec 5, 2023
1 parent 2018664 commit a61caf3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apps/web/src/lib/hygraph/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ export const getProjects = async () => {
}
}
`;
const { projects } = await query<GetProjectsQuery>(getProjectsQuery);
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- testing
const { projects } = await query<GetProjectsQuery>(getProjectsQuery) ?? {};
return projects;
}

Expand All @@ -168,6 +169,7 @@ export const getTechnologies = async () => {
}
}
`;
const { technologies } = await query<GetTechnologiesQuery>(getTechnologiesQuery);
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- testing
const { technologies } = await query<GetTechnologiesQuery>(getTechnologiesQuery) ?? {};
return technologies;
}
3 changes: 3 additions & 0 deletions packages/cdk-next-app/next-app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,9 @@ export class NextApp extends Construct {
REVALIDATION_NAME: {
value: this.revalidationFunction.functionName,
},
BLOG_ENDPOINT: {
value: 'https://api-eu-central-1-shared-euc1-02.hygraph.com/v2/clav7ijug2n3n01t482yqa53o/master'
}
},
buildSpec: BuildSpec.fromObject({
version: '0.2',
Expand Down

0 comments on commit a61caf3

Please sign in to comment.