A minimal blog built with Nuxt3, deployed on Cloudflare Workers, with content supplied from Sanity.io.
Figured it was that time again, time to re-engineer my personal space on the internet. I wanted to convert my static 'about me' page, into a blog with dynamic content. Nuxt v3 stood out because its underlying nitro engine supports Worker based deployments. This was exciting because Cloudflare workers 'free' tier is practically unlimited. Now no money shall be shelled out for those few people that stop by my blog at https://jamesvan.ca.
My hope is this will inspire others to use Nuxt3 with Cloudflare workers, as my experience has been very enjoyable thus far.
Here's hoping I can get around polishing these remaining items:
- Make this repository template ready for nuxt cli
- Fix @sanity/client in Workers environment
- Write github actions for CI to Cloudflare Workers
- Clone the repo
git clone git@github.com:jvanst/nuxt3-blog.git
- Install dependencies
yarn install
- Start the application
yarn dev
Assuming deploying to CF workers:
- Build
NITRO_PRESET=cloudflare yarn build
- Deploy with wrangler
wrangler publish