48 lines
879 B
Markdown
48 lines
879 B
Markdown
|
# 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.
|