⚡️ nitro ⤫ partykit 🎈
npm install partykit nitropack nitroparty --save-dev
// nitro.config.ts
export default defineNitroConfig({
extends: "nitroparty"
});
// partykit.json
{
"$schema": "https://www.partykit.io/schema.json",
"name": "my-party",
"main": "./.output/server/index.mjs",
"compatibilityDate": "2023-12-26",
"build": {
"command": "npx nitropack build",
"watch": "routes"
},
"serve": {
"build": "./client/index.ts",
"path": "public"
}
}
// package.json
{
// ...
"scripts": {
"prepare": "nitropack prepare",
"dev": "partykit dev",
"deploy": "partykit deploy"
}
}