dmcnmr / vue-ssr-cloudflare-workers-template

Server-rendered Vue.js app deployed to Cloudflare Workers
https://vue-ssr-cloudflare-workers.l5x.workers.dev
MIT License
37 stars 7 forks source link

vue-ssr-cloudflare-workers-template

Uses a modified vue-server-renderer/basic.js, for changes see this commit.

Project setup

npm install -g @cloudflare/wrangler
npm install

Add your account_id to wrangler.toml. You can find your account_id on the right sidebar of the Workers or Overview Dashboard. Note: You may need to scroll down! For more details on finding your account_id click here.

Preview the project

npm run preview

Publish to workers.dev

npm run publish