40 lines
1.3 KiB
JavaScript
40 lines
1.3 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,
|
|
// Utilizar la URL del recurso JSON de idioma desde las variables de entorno
|
|
remoteJsonUrl: `http://localhost:8000/data/language/languages.json`,
|
|
},
|
|
},
|
|
{
|
|
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','url','attrs'], // Campos personalizados si el feed tiene elementos adicionales
|
|
},
|
|
},
|
|
},
|
|
},
|
|
|
|
],
|
|
trailingSlash: 'always',
|
|
};
|