limlabs / developer-portfolio

1 stars 1 forks source link

make build pass, switch to local payload fetch internally #9

Closed austin-liminal closed 3 months ago

austin-liminal commented 3 months ago

Example build output:

image
linear[bot] commented 3 months ago
DP-9 Use internal payload instance

Use this [https://github.com/payloadcms/payload-3.0-demo/blob/main/src/app/my-route/route.ts#L5](https://github.com/payloadcms/payload-3.0-demo/blob/main/src/app/my-route/route.ts#L5) or similar approach to replace the `fetch` calls where we are calling fetch against the app itself inside of the app router pages, layouts, etc. Most of the fetches should be here [https://github.com/limlabs/developer-portfolio/blob/main/src/utilities/api.ts](https://github.com/limlabs/developer-portfolio/blob/main/src/utilities/api.ts), may have to search for `fetch` to get a complete list