gridsome-plugin-rss
gridsome-plugin-rss copied to clipboard
Cannot find the generate xml file
Here's the configuration
use: 'gridsome-plugin-rss',
options: {
contentTypeName: 'Post',
feedOptions: {
title: 'Test',
feed_url: 'https://example.com/rss.xml',
site_url: 'https://example.com'
},
feedItemOptions: node => ({
title: node.title,
url: 'https://example.com' + node.path,
author: node.author
}),
output: {
dir: './dist',
name: 'rss.xml'
}
}
}
Hey @mittalyashu - sorry, I didn't see this earlier, for some reason GitHub didn't notify me when you opened this issue.
Can you make sure you're on v1.1.0?
Yes, I am using the exact same version.
But it is not generating the xml file.
Hey @mittalyashu I ran into the same issue.
I can't find the genreated file when doing npm run serve.
However, if you run npm run build or gridsome build you'll see your xml file.
Hope it helps! :v:
npm run serve -> :x:
npm run build -> :heavy_check_mark:
@mittalyashu Because you change the output dir to ./dist instead of ./static like the example, so the plugin can't put the file there because "dist" is regenerated.