Open History to see the last commit
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.