This repository has been archived on 2022-09-04. You can view files and clone it, but cannot push or open issues or pull requests.
tribalwarshelp.com/gatsby-config.js

75 lines
1.9 KiB
JavaScript
Raw Normal View History

2021-01-04 17:12:05 +00:00
const baseUrl = 'tribalwarshelp.com';
const siteUrl = 'https://' + baseUrl;
const apiUrl = 'https://api.' + baseUrl;
2020-07-26 10:03:52 +00:00
module.exports = {
siteMetadata: {
title: `TWHelp`,
description: `Tools for the popular online game TribalWars.`,
2021-01-04 17:12:05 +00:00
dcbotUrl: 'https://dcbot.' + baseUrl,
apiUrl,
2021-01-04 17:12:05 +00:00
author: 'Dawid Wysokiński',
2021-01-17 08:20:52 +00:00
contactUrl: 'http://dwysokinski.me/#contact',
2021-01-04 17:12:05 +00:00
scriptsUrl: 'https://github.com/tribalwarshelp/scripts',
2020-07-26 10:03:52 +00:00
siteUrl,
baseUrl,
2020-07-26 10:03:52 +00:00
},
plugins: [
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images`,
},
},
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Tribal Wars Help`,
short_name: `TWHelp`,
start_url: `/`,
background_color: `#303030`,
theme_color: `#303030`,
display: `minimal-ui`,
icon: `src/images/icon.svg`, // This path is relative to the root of the site.
},
},
{
resolve: `gatsby-theme-material-ui`,
options: {
webFontsConfig: null,
},
},
2020-07-26 10:03:52 +00:00
`gatsby-plugin-sitemap`,
{
2021-01-04 17:12:05 +00:00
resolve: 'gatsby-plugin-robots-txt',
2020-07-26 10:03:52 +00:00
options: {
host: siteUrl,
2021-01-04 17:12:05 +00:00
sitemap: siteUrl + '/sitemap.xml',
2020-07-26 10:03:52 +00:00
env: {
development: {
2021-01-04 17:12:05 +00:00
policy: [{ userAgent: '*', disallow: ['/'] }],
2020-07-26 10:03:52 +00:00
},
production: {
2021-01-04 17:12:05 +00:00
policy: [{ userAgent: '*', allow: '/' }],
2020-07-26 10:03:52 +00:00
},
},
},
},
{
2021-01-04 17:12:05 +00:00
resolve: 'gatsby-source-graphql',
options: {
// This type will contain remote schema Query type
2021-01-04 17:12:05 +00:00
typeName: 'twhelp',
// This is the field under which it's accessible
2021-01-04 17:12:05 +00:00
fieldName: 'twhelp',
// URL to query from
2021-01-04 17:12:05 +00:00
url: apiUrl + '/graphql',
},
},
2020-07-26 10:03:52 +00:00
],
};