From 416af0c6d5c005c1343d55f69af59c4f46cf775b Mon Sep 17 00:00:00 2001 From: PatrikKozak Date: Thu, 21 Sep 2023 15:54:26 -0400 Subject: [PATCH] chore: updates fetchPages url --- templates/developer-portfolio/src/app/_utils/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/developer-portfolio/src/app/_utils/api.ts b/templates/developer-portfolio/src/app/_utils/api.ts index d2945921fa..c068936a67 100644 --- a/templates/developer-portfolio/src/app/_utils/api.ts +++ b/templates/developer-portfolio/src/app/_utils/api.ts @@ -107,7 +107,7 @@ export const fetchPages = async (options?: FetchPageOptions): Promise => initPreviewRequest(init, qs, options.payloadToken) } - const url = `${process.env.PAYLOAD_PUBLIC_SERVER_URL}/api/pages?${qs.toString()}` + const url = `${process.env.PAYLOAD_PUBLIC_SERVER_URL}/api/pages` const pages: Page[] = await fetch(url, init) .then(res => { if (!res.ok) throw new Error('Error fetching pages doc')