A Nuxt real-time chat demo using Cloudflare Durable Objects for WebSockets, deployed with Nuxflare. See the tutorial blog post for more details.
- A Nuxt application for the frontend
- WebSocket functionality powered by Cloudflare Durable Objects
- Nuxflare handling the deployment process
- Install dependencies:
bun install- Start the development server:
bun run devTo deploy to Cloudflare Workers using Nuxflare:
bun nuxflare deployThis will prompt you to create and set up a CLOUDFLARE_API_TOKEN if one isn't already configured.
We've also used Nuxflare to automatically configure GitHub Actions for continuous deployment.
With this preset, pushing to the main branch automatically deploys to the production environment.
The production domain is configured through GitHub Actions using the PROD_DOMAIN environment variable.