Skip to content

Example project showing how to deploy your website build with isomorphic webpack to Cloudflare Workers.

License

Notifications You must be signed in to change notification settings

explooosion/isomorphic-worker-webpack

Repository files navigation

Isomorphic Worker Webpack

This project is an isomorphic webpack generated with webpack-starter, and deployed with Cloudflare Workers.

Online Demo

Demo with subdomain : http://isomorphic-worker-webpack.ta_7382.workers.dev/

Demo with route by cloudflare dns : https://worker.robby570.tw/

Installation

Create .env file from .env.example

Install the cli and add your account_id, zone_id, route into wrangler.toml.

yarn global add @cloudflare/wrangler

Usage

Install dependencies.

yarn install

Start a dev server.

yarn start

Build your website.

yarn build

Deploy

Watch worker with wrangler script.

yarn worker:watch

Build worker with wrangler script.

yarn worker:build

Publish worker with wrangler script.

yarn worker:publish

Publish worker for production.

yarn worker:publish-prod

Credit

License

Isomorphic Worker Webpack is open source software licensed as MIT.

About

Example project showing how to deploy your website build with isomorphic webpack to Cloudflare Workers.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages