sanity icon indicating copy to clipboard operation
sanity copied to clipboard

Minimal client does not work when Nuxt `baseUrl` is set

Open zchlm opened this issue 2 years ago • 2 comments

Version

module: 1.2.1 nuxt: 3.0.0-rc.3

Reproduction

Link:

  • [x] https://stackblitz.com/edit/nuxt-sanity-3e4uqq?file=app.vue

Config

export default defineNuxtConfig({
  modules: ['@nuxtjs/sanity'],
  app: {
    baseURL: '/test/',
  },
  sanity: {
    minimal: true,
    dataset: 'production',
    projectId: '',
  },
});

Additional information

Checklist

  • [x] I have tested with the latest Nuxt version and the issue still occurs
  • [x] I have tested with the latest module version and the issue still occurs
  • [x] I have searched the issue tracker and this issue hasn't been reported yet

zchlm avatar Jul 29 '22 05:07 zchlm

Thanks for spotting this!

I've raised a PR at https://github.com/unjs/ohmyfetch/pull/113.

danielroe avatar Jul 29 '22 09:07 danielroe

This will be fixed in next release of ufo: https://github.com/unjs/ufo/pull/68.

danielroe avatar Jul 31 '22 21:07 danielroe

This should be resolved in the latest version of Nuxt. You can run nuxi upgrade to pull it in.

danielroe avatar Aug 18 '22 12:08 danielroe

Hey @danielroe looks like this is still an issue. Nuxt halts and no response is given when minimal: true. I've updated the dependencies in the repo link provided above

zchlm avatar Sep 09 '22 06:09 zchlm