feat: local debugging with wrangler
Signed-off-by: Tom Plant <[email protected]>
This commit is contained in:
8 files changed
+6165
-101
No files matched your search
@@ -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'
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user