diff --git a/astro/src/utils/payload.ts b/astro/src/utils/payload.ts index 4729b8d..932cd0d 100644 --- a/astro/src/utils/payload.ts +++ b/astro/src/utils/payload.ts @@ -4,7 +4,7 @@ const url = process.env.NODE_ENV === "development" ? "http://payload:3001" : `https://${process.env.PAYLOAD_URL}`; - +//test export const getPosts = async () => (await (await fetch(`${url}/api/posts`)).json()).docs as Post[];