Closed austin-liminal closed 3 months ago
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
getPayloadHMR()
(as in other examples)next build
from workingExample build output: