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)
15 lines
326 B
JSON
15 lines
326 B
JSON
{
|
|
"name": "remix-payload-monorepo",
|
|
"version": "1.0.0",
|
|
"description": "",
|
|
"keywords": [],
|
|
"license": "ISC",
|
|
"author": "",
|
|
"main": "index.js",
|
|
"scripts": {
|
|
"dev:payload": "cd payload && pnpm dev",
|
|
"dev:website": "cd website && pnpm dev",
|
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
}
|
|
}
|