feed-module icon indicating copy to clipboard operation
feed-module copied to clipboard

Nuxt 3 Support

Open pi0 opened this issue 3 years ago β€’ 14 comments

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

pi0 avatar Apr 01 '22 12:04 pi0

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.

maciejpedzich avatar Apr 01 '22 13:04 maciejpedzich

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

pi0 avatar Apr 01 '22 14:04 pi0

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!

maciejpedzich avatar Apr 02 '22 06:04 maciejpedzich

Added my 2 cents too ☺️

TheAlexLichter avatar May 18 '22 13:05 TheAlexLichter

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

fimion avatar May 26 '22 22:05 fimion

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 πŸ‘

TheAlexLichter avatar May 30 '22 07:05 TheAlexLichter

@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?

nozomuikuta avatar Jul 19 '22 14:07 nozomuikuta

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

fimion avatar Jul 19 '22 14:07 fimion

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 avatar Jul 19 '22 14:07 nozomuikuta

Ah, I've found you, @fimion, asked the question in Nuxt Content repository. πŸ˜‚

nozomuikuta avatar Jul 19 '22 14:07 nozomuikuta

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.

nozomuikuta avatar Jul 20 '22 17:07 nozomuikuta

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.

maciejpedzich avatar Jul 20 '22 19:07 maciejpedzich

@NozomuIkuta Sure, feel free to send in a draft PR! πŸ‘πŸ»

TheAlexLichter avatar Jul 21 '22 08:07 TheAlexLichter

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!

cmpadden avatar Jan 05 '24 21:01 cmpadden