feat: local debugging with wrangler

Signed-off-by: Tom Plant <[email protected]>
This commit is contained in:
Tom Plant committed 2024-01-14 08:12:02 +00:00
1 parent 1e183247cf
commit 3b20472433
8 files changed
+6165 -101

No files matched your search

+12
View File
@@ -4,3 +4,15 @@ const nextConfig = {
}
module.exports = nextConfig
if (process.env.NODE_ENV === 'development') {
const { setupDevBindings } = require('@cloudflare/next-on-pages/next-dev')
setupDevBindings({
bindings: {
UPTIMEFLARE_STATE: {
type: 'kv',
id: 'UPTIMEFLARE_STATE'
}
}
})
}