This page provides a walkthrough on serving static assets (HTML, CSS, JavaScript, images, and others) from a PartyKit project.
Serving static assets
You can pass a static assets path via CLI: --serve path/to/assets or add it to your partykit.json:
While PartyKit defaults should satisfy most needs, you can override some optional configs:
Passing build field
Modern apps usually need a compiler of some kind, for example, for TypeScript, JSX, bundle splitting, and so on. PartyKit addresses this need. Pass a build field:
You can further customize the build command by passing additional configuration arguments:
Please give us feedback on Discord or Twitter if you use this feature - your insights will make PartyKit better 🥳