Adds example on using the Local API (both fetching data and modifying
data) with Remix.
https://github.com/user-attachments/assets/fe215e4e-e446-4f92-b0ac-acbf3d0a225b
This is achieved through the monorepo:
```
website/
payload/
```
You can import the Payload config and types like this:
86d83216d7/examples/remix/website/app/routes/_index.tsx (L1-L16)
684 B
684 B
Payload Payload + Remix Example
This example is built based on an old version of the website template.
The objective is to show to use the Local API with Remix framework. This is achieved through monorepo with 2 apps: payload - Next.js admin panel and definition of the Payload config. website - Remix website, imports the payload config from payload
## Setup
cp ./payload/.env.example ./payload./.env(copy the payload .env.example file to .env)cp ./website/.env.example ./website/.env(copy the website .env.example file to .env)pnpm installpnpm run dev:payloadpnpm run dev:website(in a separate terminal)