diff --git a/docker-compose.yml b/docker-compose.yml index f857d53..de87fe2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -15,6 +15,7 @@ services: build: context: payload environment: + NAME: ${NAME} PAYLOAD_URL: ${PAYLOAD_URL} PAYLOAD_PORT: ${PAYLOAD_PORT} PAYLOAD_SECRET: ${PAYLOAD_SECRET} diff --git a/payload/src/collections/Posts.ts b/payload/src/collections/Posts.ts index 65a7110..af35aaf 100644 --- a/payload/src/collections/Posts.ts +++ b/payload/src/collections/Posts.ts @@ -18,7 +18,7 @@ const Posts: CollectionConfig = { try { console.log( await fetch( - `https://api.github.com/repos/mooxl/${process.env.name}/dispatches`, + `https://api.github.com/repos/mooxl/${process.env.NAME}/dispatches`, { method: "POST", headers: {