Skip to content
Source
Sign inSign up
TanStack/router
Open History to see the last commit

README.md

43 lines516 Bytes

1# Start Basic Cloudflare
2​
3## Getting Started
4​
5### Install the dependencies
6​
7```bash
8pnpm i
9```
10​
11### Start the development server
12​
13```bash
14pnpm dev
15```
16​
17### Build for Production
18​
19```bash
20pnpm build
21```
22​
23### Preview the production build
24​
25```bash
26pnpm preview
27```
28​
29### Deploy to Cloudflare
30​
31```sh
32pnpm run deploy
33```
34​
35## Accessing bindings
36​
37You can access Cloudflare bindings in server functions by using importable `env`:
38​
39```ts
40import { env } from 'cloudflare:workers'
41```
42​
43See `src/routes/index.tsx` for an example.