Signed-off-by: Max Schmidt <max.schmidt@outlook.de>
This commit is contained in:
Max Schmidt
2023-05-17 16:48:30 +02:00
parent 4f2ddb4cc8
commit 5ca25e699a
2 changed files with 4 additions and 4 deletions

View File

@ -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[];