blob: dec7f30b37aca1bd081d3bc59b41f713c163b738 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Welcome to Remix + Cloudflare!
- 📖 [Remix docs](https://remix.run/docs)
- 📖 [Remix Cloudflare docs](https://remix.run/guides/vite#cloudflare)
## Development
Run the dev server:
```sh
npm run dev
```
To run Wrangler:
```sh
npm run build
npm run start
```
## Typegen
Generate types for your Cloudflare bindings in `wrangler.toml`:
```sh
npm run typegen
```
You will need to rerun typegen whenever you make changes to `wrangler.toml`.
## Deployment
First, build your app for production:
```sh
npm run build
```
Then, deploy your app to Cloudflare Pages:
```sh
npm run deploy
```
## Styling
This template comes with [Tailwind CSS](https://tailwindcss.com/) already configured for a simple default starting experience. You can use whatever css framework you prefer. See the [Vite docs on css](https://vitejs.dev/guide/features.html#css) for more information.
|