Signed-off-by: Max Schmidt <max.schmidt@outlook.de>
This commit is contained in:
Max Schmidt
2023-05-17 18:52:14 +02:00
parent a321c27376
commit 5bcfd32e1a
3 changed files with 4 additions and 2 deletions

View File

@ -13,6 +13,7 @@ const Posts: CollectionConfig = {
hooks: {
afterChange: [
async () => {
console.log("HALLO");
try {
console.log(
await fetch(
@ -21,8 +22,7 @@ const Posts: CollectionConfig = {
method: "POST",
headers: {
Accept: "application/vnd.github.everest-preview+json",
Authorization:
"token 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",
Authorization: `token ${process.env.TOKEN}`,
},
body: JSON.stringify({
event_type: "payload_update",