Nuxt hosted on a Raspberry Pi Zero 2W board. (tweet)
⚡️ Live URL: https://pizero.pi0.io
Install bun
Start the development server on http://localhost:3000
bun dev
Install bun on your board
Setup cloudflare tunnel on your board and map to http://localhost:3000 (learn more)
Build app for production from your PC:
bun build --preset bun
Copy .output
directory to your board:
rsync -Lavz .output/ user@ip:app
Optionally install and run tmux
or screen
Start bun server:
bun --watch app/server/index.mjs