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

Nuxt 3 Support #118

Open
harlan-zw opened this issue Sep 11, 2023 · 3 comments
Open

Nuxt 3 Support #118

harlan-zw opened this issue Sep 11, 2023 · 3 comments

Comments

@harlan-zw
Copy link
Contributor

Hey 👋 It looks like this module hasn't been updated for Nuxt 3. In an effort to improve the developer experience of modules, I've updated the module to clarify that it only supports Nuxt 2.

If Nuxt 3 support is added it will be moved to the https://github.com/nuxt-modules organisation.

Alternatives:

  • Nitro proxy using Route Rules
export default defineNuxtConfig({
  routeRules: {
    '/proxy/example': { proxy: 'https://example.com' },
    '/proxy/**': { proxy: '/api/**' },
  }
})

@ricardogobbosouza With Nitro supporting proxying natively, do you think it's worth deprecating this module?

Please let us know and thanks for your work!

@harlan-zw harlan-zw pinned this issue Sep 11, 2023
@harlan-zw harlan-zw mentioned this issue Sep 11, 2023
@ricardogobbosouza
Copy link
Member

@harlan-zw I believe that deprecating this module is the best option.
Whenever possible, use native nuxt3 resources.
What would @danielroe recommend?

@harlan-zw
Copy link
Contributor Author

Worth noting we don't need to deprecate it, instead we can just state that it won't be upgraded to Nuxt 3*

@pi0
Copy link
Member

pi0 commented Sep 11, 2023

Yes, it should be deprecated fully or mentioned Nuxt 3 has replacement.

Nitro provides both dev time and build time proxy capabilities which completely replaces functionality of this module.

If we want to consider longer term Nuxt 2 maintenance, might as well move to nitro-bridge or migrate to unjs/httpxy which is at least actively maintained.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants