coolcode / remix-cloudflare-template

Remix Cloudflare Template

Home Page:https://remix-cloudflare-demo-1ag.pages.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remix Cloudflare Template

Development

You will be utilizing Wrangler for local development to emulate the Cloudflare runtime. This is already wired up in your package.json as the dev script:

# setup database
wrangler d1 execute demo --local --file=./schema.sql

# start the remix dev server and wrangler
pnpm run dev

Open up http://127.0.0.1:8788 and you should be ready to go!

Deployment

Cloudflare Pages are currently only deployable through their Git provider integrations.

If you don't already have an account, then create a Cloudflare account here and after verifying your email address with Cloudflare, go to your dashboard and follow the Cloudflare Pages deployment guide.

Configure the "Build command" should be set to npm run build, and the "Build output directory" should be set to public.

About

Remix Cloudflare Template

https://remix-cloudflare-demo-1ag.pages.dev/

License:MIT License


Languages

Language:JavaScript 89.1%Language:CSS 9.1%Language:TypeScript 1.9%