iteck-gatsby-nextream-web/gatsby-config.js
2024-10-16 16:51:06 -07:00

38 lines
1.2 KiB
JavaScript

module.exports = {
siteMetadata: {
title: 'Nextream',
description: 'Nextream - Tech & IT Solutions',
author: 'Nextream.net',
},
plugins: ['gatsby-plugin-resolve-src', 'gatsby-plugin-eslint',
{
resolve: `gatsby-plugin-intl`,
options: {
// language JSON resource path
path: `${__dirname}/src/intl`,
// supported language
languages: [`en`, `es`],
// language file path
defaultLanguage: `es`,
// option to redirect to `/ko` when connecting `/`
redirect: true,
},
},
{
resolve: `gatsby-source-rss-feed`,
options: {
url: `https://feeds.bbci.co.uk/news/technology/rss.xml`,
name: `BBCNewsTech`,
parserOption: {
customFields: {
channel: ['title', 'description', 'link', 'image', 'generator', 'lastBuildDate', 'copyright', 'language', 'ttl'],
item: ['title', 'description', 'link', 'guid', 'pubDate', 'media:thumbnail'], // Campos personalizados si el feed tiene elementos adicionales
},
},
},
},
],
trailingSlash: 'always',
};