nuxt-hub / core

Build full-stack applications with Nuxt on CloudFlare, with zero configuration.
https://hub.nuxt.com
Apache License 2.0
993 stars 57 forks source link

fix: only show vectorize as remote storage if indexes present #352

Closed RihanArfan closed 3 weeks ago

RihanArfan commented 3 weeks ago

Currently Vectorize always shows as an available remote storage, even if no indexes are configured as vectorize: {} is always on the manifest. This PR adds logic to ensure there's actually Vectorize indexes within vectorize: {} before showing Vectorize in remote storage, and ensures that Vectorize is enabled locally.

pkg-pr-new[bot] commented 3 weeks ago

Open in Stackblitz

pnpm add https://pkg.pr.new/nuxt-hub/core/@nuxthub/core@352

commit: 3c6944c