https://github.com/coolcode/remix-cloudflare-template
Remix Cloudflare Template
https://github.com/coolcode/remix-cloudflare-template
cloudflare-pages cloudflate-template remix remix-template
Last synced: 5 months ago
JSON representation
Remix Cloudflare Template
- Host: GitHub
- URL: https://github.com/coolcode/remix-cloudflare-template
- Owner: coolcode
- License: mit
- Created: 2023-12-29T10:12:32.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-14T09:21:50.000Z (almost 2 years ago)
- Last Synced: 2025-04-11T04:06:09.832Z (9 months ago)
- Topics: cloudflare-pages, cloudflate-template, remix, remix-template
- Language: JavaScript
- Homepage: https://remix-cloudflare-demo-1ag.pages.dev/
- Size: 223 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Remix Cloudflare Template
- [Online Demo](https://remix-cloudflare-demo-1ag.pages.dev)
- [Remix Docs](https://remix.run/docs)
## Development
You will be utilizing Wrangler for local development to emulate the Cloudflare runtime. This is already wired up in your package.json as the `dev` script:
```sh
# setup database
wrangler d1 execute demo --local --file=./schema.sql
# start the remix dev server and wrangler
pnpm run dev
```
Open up [http://127.0.0.1:8788](http://127.0.0.1:8788) and you should be ready to go!
## Deployment
Cloudflare Pages are currently only deployable through their Git provider integrations.
If you don't already have an account, then [create a Cloudflare account here](https://dash.cloudflare.com/sign-up/pages) and after verifying your email address with Cloudflare, go to your dashboard and follow the [Cloudflare Pages deployment guide](https://developers.cloudflare.com/pages/framework-guides/deploy-anything).
Configure the "Build command" should be set to `npm run build`, and the "Build output directory" should be set to `public`.