Demo: https://remix-d1-4vz.pages.dev/
📖 See the Remix docs and the Remix Vite docs for details on supported features.
npm run gen
when you change wrangler.toml
Create one and add it to wrangler.toml
db-migrate-gen
when you change the schema
db-migrate-apply
to apply the migrations to the database
db-studio
to inspect the database
Run the Vite dev server:
npm run dev
To run Wrangler:
npm run build
npm run start
Warning
Cloudflare does not use wrangler.toml
to configure deployment bindings.
You MUST configure deployment bindings manually in the Cloudflare dashboard.
First, build your app for production:
npm run build
Then, deploy your app to Cloudflare Pages, you'll need to manually set up the binding for the database in the cloudflare dashboard:
npm run deploy