Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minimal client does not work when Nuxt baseUrl is set #482

Closed
4 tasks done
zchlm opened this issue Jul 29, 2022 · 4 comments · Fixed by #509
Closed
4 tasks done

Minimal client does not work when Nuxt baseUrl is set #482

zchlm opened this issue Jul 29, 2022 · 4 comments · Fixed by #509
Assignees
Labels
bug Something isn't working

Comments

@zchlm
Copy link

zchlm commented Jul 29, 2022

Version

module: 1.2.1
nuxt: 3.0.0-rc.3

Reproduction

Link:

Config

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

Additional information

Checklist

  • I have tested with the latest Nuxt version and the issue still occurs
  • I have tested with the latest module version and the issue still occurs
  • I have searched the issue tracker and this issue hasn't been reported yet
@zchlm zchlm added the bug Something isn't working label Jul 29, 2022
@zchlm zchlm changed the title useSanityQuery does not work when Nuxt baseUrl is set Minimal client does not work when Nuxt baseUrl is set Jul 29, 2022
Copy link
Collaborator

Thanks for spotting this!

I've raised a PR at unjs/ofetch#113.

@danielroe
Copy link
Collaborator

This will be fixed in next release of ufo: unjs/ufo#68.

@danielroe
Copy link
Collaborator

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

@zchlm
Copy link
Author

zchlm commented Sep 9, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants