Hi all! I have a beginner question. I am trying to use Vectorize with my NextJS Cloudflare Pages web

Hi all! I have a beginner question. I am trying to use Vectorize with my NextJS Cloudflare Pages website. In this tutorial https://developers.cloudflare.com/workers-ai/tutorials/build-a-retrieval-augmented-generation-ai/ they say to use npx wrangler dev --remote to run locally and iterate. When I run that, I see:
✘ [ERROR] It looks like you've run a Workers-specific command in a Pages project.

For Pages, please run `wrangler pages dev` instead.
✘ [ERROR] It looks like you've run a Workers-specific command in a Pages project.

For Pages, please run `wrangler pages dev` instead.
But when I do that, I see:
❯ npx wrangler pages dev --remote


✘ [ERROR] Unknown argument: remote


wrangler pages dev [directory] [-- command..]

Develop your full-stack Pages application locally
❯ npx wrangler pages dev --remote


✘ [ERROR] Unknown argument: remote


wrangler pages dev [directory] [-- command..]

Develop your full-stack Pages application locally
I need to use --remote because of:
▲ [WARNING] Vectorize bindings are not currently supported in local mode. Please use --remote if you are working with them.
▲ [WARNING] Vectorize bindings are not currently supported in local mode. Please use --remote if you are working with them.
And without that, I see:
✘ [ERROR] Error in GET function: Error: VECTOR_INDEX binding is not available
✘ [ERROR] Error in GET function: Error: VECTOR_INDEX binding is not available
The AI binding and KV binding are working fine, no issues there, but I can't seem to get the Vectorize binding to show up at all. Maybe I'm making an obvious mistake -- I'm somewhat new to Cloudflare. Any help appreciated, thank you!
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?