You will be running two processes during development when using Vercel as your server.
- Your Miniflare server in one (miniflare is a local environment for Cloudflare Workers)
- The Remix development server in another
# in one tab (starts remix dev server)
$ npm run dev
# in another (starts miniflare server)
$ npm start
Open up http://127.0.0.1:8787 and you should be ready to go!
If you'd rather run everything in a single tab, you can look at concurrently or similar tools to run both processes in one tab.
Use wrangler to build and deploy your application to Cloudflare Workers:
npm run deploy