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 devOpen up http://localhost:5173 and you should be ready to go!
First, build your app for production:
pnpm run buildThen run the app in production mode:
pnpm startNow you'll need to pick a host to deploy it to.
If you're familiar with deploying Node applications, the built-in Remix app server is production-ready.
Make sure to deploy the output of pnpm run build
build/serverbuild/client