Working Docker build 🎉

This commit is contained in:
3wc
2024-03-11 13:25:04 -03:00
parent d84018c787
commit 338224ef6b
5 changed files with 35 additions and 4 deletions

View File

@ -2,7 +2,9 @@ import type { Page } from "@turbopress/api/types";
import { getPayloadCollection } from "./api.service";
export async function getPageCollection(query: any = null) {
const url = `${import.meta.env.PAYLOAD_PUBLIC_SERVER_URL}/api/pages`;
// FIXME 3wc: shouldn't need to hardcode this?!
//const url = `${import.meta.env.PAYLOAD_PUBLIC_SERVER_URL}/api/pages`;
const url = `http://api:3001/api/pages`;
return getPayloadCollection<Page>(url, query);
}