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,
// for more details on Bindings see: https://developers.cloudflare.com/pages/functions/bindings/)
//
// KV Example:
TESTKV: {
type: "kv",
id: "TESTKV",
},
},
});
})
}
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,
// for more details on Bindings see: https://developers.cloudflare.com/pages/functions/bindings/)
//
// KV Example:
TESTKV: {
type: "kv",
id: "TESTKV",
},
},
});
})
}