An open API service indexing awesome lists of open source software.

https://github.com/superhighfives/code.charliegleason.com

A little code blog built on React Router 7 and Cloudflare Workers.
https://github.com/superhighfives/code.charliegleason.com

code tutorials

Last synced: 15 days ago
JSON representation

A little code blog built on React Router 7 and Cloudflare Workers.

Awesome Lists containing this project

README

          

# ❯ code.charliegleason.com

📖 See the [Remix docs](https://remix.run/docs) and the [Remix Vite docs](https://remix.run/docs/en/main/guides/vite) for details on supported features.

## og:image with Satori

Uses [vite-plugin-wasm-module-workers](https://github.com/superhighfives/vite-plugin-wasm-module-workers/) to handle `og:image` generation on Vite and Cloudflare Workers.

## 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`.

## Development

Run the Vite dev server:

```sh
npm run dev
```

To run Wrangler:

```sh
npm run build
npm run start
```

## Deployment

> [!WARNING]
> Cloudflare does _not_ use `wrangler.toml` to configure deployment bindings.
> You **MUST** [configure deployment bindings manually in the Cloudflare dashboard][bindings].

First, build your app for production:

```sh
npm run build
```

Then, deploy your app to Cloudflare Pages:

```sh
npm run deploy
```

[bindings]: https://developers.cloudflare.com/pages/functions/bindings/