Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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)