Deploy Partykit

1. Authenticate

cd apps/party
npx partykit login

This opens a browser to authenticate with your Partykit account.

2. Deploy

npx partykit deploy

Note the .partykit.dev URL printed at the end. That becomes NEXT_PUBLIC_PARTYKIT_HOST.

3. Local development

For local dev, run the Partykit server instead of deploying:

npx partykit dev

This starts the server at localhost:1999. Set NEXT_PUBLIC_PARTYKIT_HOST=localhost:1999 in your local .env.local.