Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dario-piotrowicz/next-on-pages-next-dev-get-bindings-proxy-test-demo
https://github.com/dario-piotrowicz/next-on-pages-next-dev-get-bindings-proxy-test-demo
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dario-piotrowicz/next-on-pages-next-dev-get-bindings-proxy-test-demo
- Owner: dario-piotrowicz
- Created: 2024-01-22T14:09:26.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-02-01T15:15:11.000Z (10 months ago)
- Last Synced: 2024-04-18T06:19:59.219Z (7 months ago)
- Language: TypeScript
- Size: 4.17 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# next-on-pages next-dev implemented with getBindingsProxy test/demo
This repository contains a test/demo on how to access Cloudflare Bindings using the `@cloudflare/next-on-pages` `next-dev` sub-module (using its new implementation built on top of wrangler's `getBindingsProxy`, introduced in https://github.com/cloudflare/next-on-pages/pull/648).
## To run it
After installing the dependencies:
```sh
npm i
```Run the workers (that get bound to the Next.js application) and the Next.js application in parallel
with:
```sh
npm start
```By then opening the browser at the application's root you should see the following home screen showcasing the fact that the application has access to the various type of bindings:
![app's Home](./app-home.png)