Go to file
Orion Reed 5070b2f7e5 fix 2024-07-19 13:00:55 +02:00
public init 2024-07-17 15:59:09 +02:00
src fix 2024-07-19 13:00:55 +02:00
.eslintrc.cjs init 2024-07-17 15:59:09 +02:00
.gitignore init 2024-07-17 15:59:09 +02:00
.yarnrc.yml init 2024-07-17 15:59:09 +02:00
README.md init 2024-07-17 15:59:09 +02:00
biome.json init 2024-07-17 15:59:09 +02:00
index.html hmmmmmm 2024-07-19 12:02:44 +02:00
package.json hmmmmmm 2024-07-19 12:02:44 +02:00
partykit.json init 2024-07-17 15:59:09 +02:00
todo.md hmmmmmm 2024-07-19 12:02:44 +02:00
tsconfig.json init 2024-07-17 15:59:09 +02:00
tsconfig.node.json init 2024-07-17 15:59:09 +02:00
vite.config.ts init 2024-07-17 15:59:09 +02:00
yarn.lock hmmmmmm 2024-07-19 12:02:44 +02:00

README.md

This repository shows how you might use tldraw together with the yjs library. It also makes a good example for how to use tldraw with other backend services!

This branch shows a partykit integration.

For production:

  • First create a .env file with:
VITE_PRODUCTION_URL=https://tldraw-partykit-yjs-example.YOUR_USERNAME.partykit.dev

...replacing YOUR_USERNAME with your partykit username.

  • Then run yarn deploy

If it's your first time using partykit, you may need to try deploying first in order to get your username. While the instructions above should work, the real way to do this is to point the VITE_PRODUCTION_URL at whatever URL you're deploying the website to.