Skip to content

Commit

Permalink
add debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
iamjoshua committed Mar 5, 2024
1 parent 07d715d commit 6257179
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions app/on/heraclitus/route.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { handleCacheRevalidation } from "@/lib/cacheTools";

export async function POST(request: Request) {
console.log("github action");
console.log(request);

return await handleCacheRevalidation("essays", request);
}
5 changes: 3 additions & 2 deletions lib/getWritings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ export async function getAllQuestions() {

// TODO: parse MD front matter
const slug = question.name.replace(".md", "");

questions.push({ slug, question: data.question });
if (data.published) {
questions.push({ slug, question: data.question });
}
}

return questions;
Expand Down

0 comments on commit 6257179

Please sign in to comment.