📖 See the Remix docs and the Remix Vite docs for details on supported features.
Generate types for your Cloudflare bindings in wrangler.toml:
npm run typegenYou will need to rerun typegen whenever you make changes to wrangler.toml.
Run the Vite dev server:
npm run devTo run Wrangler:
npm run build
npm run startWarning
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 buildThen, deploy your app to Cloudflare Pages:
npm run deploynpx drizzle-kit generateCreate the table in remote:
First remove the old table if it exists:
wrangler d1 execute 'festa-os-2024' --local --command "DROP TABLE 'open_source_projects'"Then apply the migration:
npx wrangler d1 migrations apply 'festa-os-2024' --localReplace --local with --remote to apply the migration in the remote database.
wrangler d1 execute 'festa-os-2024' --local --command "INSERT INTO users (id, email, password ) VALUES (1, '----', '----');"