Skip to content

Commit

Permalink
add link comment referencing next-dev readme
Browse files Browse the repository at this point in the history
  • Loading branch information
dario-piotrowicz committed Jan 15, 2024
1 parent 328288b commit dec045c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/create-cloudflare/src/frameworks/next/templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,12 +191,15 @@ const nextConfig = {}
module.exports = nextConfig
// Here we use the @cloudflare/next-on-pages next-dev module to allow us to use bindings during local development
// (when running the application with \`next dev\`), for more information see:
// https://github.com/dario-piotrowicz/next-on-pages/blob/8e93067/internal-packages/next-dev/README.md
if (process.env.NODE_ENV === 'development') {
import('@cloudflare/next-on-pages/next-dev').then(({ setupDevBindings }) => {
setupDevBindings({
bindings: {
// Add here the Cloudflare Bindings you want to have available during local development (with \`next dev\`)
// (for more details on Bindings see: https://developers.cloudflare.com/pages/functions/bindings/)
// Add here the Cloudflare Bindings you want to have available during local development,
// for more details on Bindings see: https://developers.cloudflare.com/pages/functions/bindings/)
//
// KV Example
// MY_KV: {
Expand Down

0 comments on commit dec045c

Please sign in to comment.