From 8e79be9c798dc3282ae0f9363390945d2e63befd Mon Sep 17 00:00:00 2001 From: Gabriel Massadas Date: Tue, 5 Dec 2023 16:48:02 +0000 Subject: [PATCH] Fix pages binding --- packages/wrangler/src/dev.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/wrangler/src/dev.tsx b/packages/wrangler/src/dev.tsx index c01684ce0087..5b6b0cfc7631 100644 --- a/packages/wrangler/src/dev.tsx +++ b/packages/wrangler/src/dev.tsx @@ -835,6 +835,7 @@ function getBindingsAndAssetPaths(args: StartDevOptions, configParam: Config) { r2: args.r2, services: args.services, d1Databases: args.d1Databases, + ai: args.ai, }); const maskedVars = maskVars(bindings, configParam); @@ -896,7 +897,7 @@ function getBindings( wasm_modules: configParam.wasm_modules, text_blobs: configParam.text_blobs, browser: configParam.browser, - ai: configParam.ai, + ai: configParam.ai || args.ai, data_blobs: configParam.data_blobs, durable_objects: { bindings: [