Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/luzefiru/hono-pages-supabase
A PoC using the Hono Cloudflare Pages template with Supabase.
https://github.com/luzefiru/hono-pages-supabase
Last synced: 19 days ago
JSON representation
A PoC using the Hono Cloudflare Pages template with Supabase.
- Host: GitHub
- URL: https://github.com/luzefiru/hono-pages-supabase
- Owner: Luzefiru
- Created: 2024-04-03T12:18:30.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-04-10T10:02:28.000Z (10 months ago)
- Last Synced: 2024-11-09T20:12:52.225Z (3 months ago)
- Language: TypeScript
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
To test the server using wrangler locally:
```bash
npm install
npm run build
npm run preview
```To deploy to a Cloudflare worker:
```bash
npm run deploy
```### Notes
1. The `.env` only works on local development. In order to make it work on your Cloudflare deployment, you'll have to set the environment bindings inside your Cloudflare Pages project dashboard.
2. For every library that depends on `node:`, we have to include them in our `vite.config.ts` `ssr.external` array of packages to make it compatible with Cloudflare Pages.- We have to add the `nodejs_compat` compatibility flag to our project dashboard `Settings > Functions` page as well.