Skip to content

marcomafessolli/remix-prisma-cloudflare-workers

Repository files navigation

Remix + Cloudflare Workers + Prisma!

Live Demo

Setup

Before starting, make sure you have the following:

  • node >= 16
  • A Prisma Data Proxy account
  • Followed steps #6 and #7 at Prisma and Cloudflare documentation
  • A .env file with DATABASE_URL that points to your prisma data proxy account

After that, do the following:

  • npm install
  • PRISMA_CLIENT_ENGINE_TYPE=dataproxy npx prisma generate

Check Prisma and Cloudflare for more information.

Development

$ npm run dev

And then check http://127.0.0.1:8787. You're ready 💇‍♂️

Deployment

npm run deploy