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

Open
pi0 opened this issue Apr 1, 2022 · 14 comments
Open

Nuxt 3 Support #106

pi0 opened this issue Apr 1, 2022 · 14 comments

Comments

@pi0
Copy link
Member

pi0 commented Apr 1, 2022

There is a nice initiative from @maciejpedzich already: https://github.com/maciejpedzich/nuxt-feed-module/

The upstream issue to consider merging: https://github.com/maciejpedzich/nuxt-feed-module/issues/1

/cc @manniL

@maciejpedzich
Copy link

Looks like I opened a PR over a month ago... the code is pretty much the same compared to my nuxt-feed-module, just the README.md containing respective module names.

@pi0
Copy link
Member Author

pi0 commented Apr 1, 2022

Thanks. I've made a review to your current PR.

@maciejpedzich
Copy link

Hi @pi0, sorry for not getting back to you earlier! I'd seen the review, but got distracted and... here I am. I'll see when I'll be able to apply the changes. Once that's done, I'll let you know in this issue. Cheers!

@manniL
Copy link
Member

manniL commented May 18, 2022

Added my 2 cents too ☺️

@fimion
Copy link

fimion commented May 26, 2022

Hey y'all, Is anyone actively working on this?

@manniL
Copy link
Member

manniL commented May 30, 2022

Hey y'all, Is anyone actively working on this?

Haven't had time to continue based on #103 - so feel free to stab on this @fimion 👍

@nozomuikuta
Copy link

@manniL @fimion

I'm interested in contribution to make this module support Nuxt 3 (and Bridge if possible).
If no one is currently working on it, may I create a draft PR and work on it?

@fimion
Copy link

fimion commented Jul 19, 2022

I have not started work on it and i know @maciejpedzich has recently created an interesting solution for this:

https://journal.maciejpedzi.ch/generating-rss-feeds-for-a-nuxt-content-site

@nozomuikuta
Copy link

nozomuikuta commented Jul 19, 2022

Oh, it looks interesting! Thank you for sharing!

Actually, I know there are some people asking for this kind of solution in https://github.com/nuxt/content.
I will share the article with them as a reference (of course with your and his name). 🏃‍♂️

By the way, it would be cumbersome for every developer to write Nuxt Server routes to handle RSS generation, especially in more simple use cases. So, I still believe upgrading Nuxt Feed module will beneficial for the community.

@nozomuikuta
Copy link

Ah, I've found you, @fimion, asked the question in Nuxt Content repository. 😂

@nozomuikuta
Copy link

It seems the author is so busy or enjoying vacation.

FYR, I started developing Nuxt 3 support in a branch of my folked repository (at the very moment, for future personal use).

I will open a (draft) PR once I got an approval from authors.

@maciejpedzich
Copy link

I have not started work on it and i know @maciejpedzich has recently created an interesting solution for this:

https://journal.maciejpedzi.ch/generating-rss-feeds-for-a-nuxt-content-site

First of all, big up for the shoutout, @fimion! As for you, @nozomuikuta, feel free to use my approach for your feed module, if that helps! Even though that code was written with Nuxt Content in mind, it should be relatively easy to adopt for a wider range of use-cases.

@manniL
Copy link
Member

manniL commented Jul 21, 2022

@nozomuikuta Sure, feel free to send in a draft PR! 👍🏻

@cmpadden
Copy link

cmpadden commented Jan 5, 2024

For those who are interested in adding an rss / atom feed to their website via nuxt/content without the need for a module, I just did it with my personal website, and it's pretty straightforward. You can find a blog post outlining the process here:

https://cmpadden.github.io/articles/nuxt-content-rss-feed

Alternatively, you can reference the code in the pull-request here: https://github.com/cmpadden/cmpadden.github.io/pull/35/files

The trick to getting it to work for statically generated websites using nuxt generate is to add a nitro pre-render route in your nuxt.config.ts.

  nitro: {
    prerender: {
      routes: ['/sitemap.xml', '/atom']
    }
  }

The atom feed is accessible at: https://cmpadden.github.io/atom

And you can see how it loads with Feedly in this screenshot:

image

Hope this helps!

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

6 participants