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 #41

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

Nuxt 3 Support #41

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

Comments

@harlan-zw
Copy link
Contributor

harlan-zw commented Sep 11, 2023

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:

@manniL Are there any plans to upgrade to Nuxt 3, if not do you have any recommendations for users?

@manniL
Copy link
Member

manniL commented Sep 11, 2023

Not planned as it is not necessary in Nuxt 3. Nitro does cover the _redirects and _headers files pretty well 👍

@DreaMinder
Copy link

DreaMinder commented Nov 1, 2023

@manniL Nitro doesn't support Netlify's "200 status code" for proxying, :splat marker for wildcard routes, and "force" flag for overriding existing pages with redirects. It also overrides _redirects file that I created programmatically with a similar module.
Just saying that even though Nitro has some cool integrations, there's still demand for such a module 🙌

@manniL
Copy link
Member

manniL commented Nov 1, 2023

Nitro doesn't support Netlify's "200 status code" for proxying, :splat marker for wildcard routes, and "force" flag for overriding existing pages with redirects.

You should be able to create your own _redirects until these features (e.g. nitrojs/nitro#1748) are supported 👍
Please raise other issues if there are none

It also overrides _redirects file that I created programmatically with a similar module.

This should not happen, Nitro should only add to these files if they exist 🤔

@DreaMinder
Copy link

DreaMinder commented Nov 1, 2023

This should not happen, Nitro should only add to these files if they exist

I figured it out. I tried to write into .output/public which worked locally. But for some reason, netlify preset writes directly into dist and fails to build if dist is a symlink. It's working with dist target, sorry for bothering. 😓

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