snipette-gridsome/gridsome.config.js
Hippo 16bcaaf54b Enable image redirects
Images can now go directly to media.snipettemag.com instead of
being routed through the private Ghost instance. (Reduces traffic
on that node).
2019-12-19 22:01:35 +05:30

37 lines
752 B
JavaScript

module.exports = {
siteName: 'Gridsome Casper',
siteUrl: 'https://www.gridsome.org',
siteDescription: 'The professional publishing platform',
titleTemplate: `%s - Gridsome`,
mediaUrlFrom: 'https://snipette-ghost.herokuapp.com/content/images/',
mediaUrlTo: 'https://media.snipettemag.com/',
templates: {
GhostPost: '/:slug',
GhostTag: '/tag/:slug',
GhostAuthor: '/author/:slug'
},
plugins: [
{
use: '@gridsome/plugin-google-analytics',
options: {
id: 'UA-XXXXXXXXX-X'
}
},
{
use: '@gridsome/source-ghost',
options: {
baseUrl: process.env.GHOST_API_URL,
contentKey: process.env.GHOST_CONTENT_KEY,
routes: {
post: '/:slug',
page: '/:slug',
author: '/author/:slug'
}
}
},
]
}