React Router Hono template for Cloudflare D1 and Drizzle
📖 See the Remix docs and the Remix Vite docs for details on supported features.
Run the Vite dev server:
npm run dev
D1 migrations will be generated using drizzle, you can find all the migrations in /drizzle
directory.
To generate these migrations you need to run:
npx drizzle-kit generate
In order to apply these migrations to D1 local database you need to run:
npx wrangler d1 migrations apply "name-of-your-database"
In order to apply these migrations to D1 remote database you need to run:
npx drizzle-kit migrate
First, build your app for production:
npm run build
Then run the app in production mode:
npm start
Now 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 npm run build
build/server
build/client