mirror of
https://github.com/TanStack/router.git
synced 2026-11-16 19:38:07 +00:00
|
History
|
||
|---|---|---|
| .. | ||
| .vscode | ||
| public | ||
| src | ||
| .gitignore | ||
| .prettierignore | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
| vite.config.ts | ||
| worker-configuration.d.ts | ||
| wrangler.jsonc | ||
Start Basic Cloudflare
Getting Started
Install the dependencies
pnpm i
Start the development server
pnpm dev
Build for Production
pnpm build
Preview the production build
pnpm preview
Deploy to Cloudflare
pnpm run deploy
Accessing bindings
You can access Cloudflare bindings in server functions by using importable env:
import { env } from 'cloudflare:workers'
See src/routes/index.tsx for an example.