2021-01-04 17:03:27 +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-02 12:38:08 +00:00
|
|
|
dcbotUrl: "https://dcbot." + baseUrl,
|
|
|
|
apiUrl,
|
2020-07-26 10:03:52 +00:00
|
|
|
author: "Dawid Wysokiński",
|
|
|
|
contactUrl: "http://dawid-wysokinski.pl/#contact",
|
|
|
|
scriptsUrl: "https://github.com/tribalwarshelp/scripts",
|
|
|
|
siteUrl,
|
2021-01-02 12:38:08 +00:00
|
|
|
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.
|
|
|
|
},
|
|
|
|
},
|
2021-01-04 17:03:27 +00:00
|
|
|
{
|
|
|
|
resolve: `gatsby-theme-material-ui`,
|
|
|
|
options: {
|
|
|
|
webFontsConfig: null,
|
|
|
|
},
|
|
|
|
},
|
2020-07-26 10:03:52 +00:00
|
|
|
`gatsby-plugin-sitemap`,
|
|
|
|
{
|
|
|
|
resolve: "gatsby-plugin-robots-txt",
|
|
|
|
options: {
|
|
|
|
host: siteUrl,
|
|
|
|
sitemap: siteUrl + "/sitemap.xml",
|
|
|
|
env: {
|
|
|
|
development: {
|
|
|
|
policy: [{ userAgent: "*", disallow: ["/"] }],
|
|
|
|
},
|
|
|
|
production: {
|
|
|
|
policy: [{ userAgent: "*", allow: "/" }],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2021-01-02 12:38:08 +00:00
|
|
|
{
|
|
|
|
resolve: "gatsby-source-graphql",
|
|
|
|
options: {
|
|
|
|
// This type will contain remote schema Query type
|
|
|
|
typeName: "twhelp",
|
|
|
|
// This is the field under which it's accessible
|
|
|
|
fieldName: "twhelp",
|
|
|
|
// URL to query from
|
|
|
|
url: apiUrl + "/graphql",
|
|
|
|
},
|
|
|
|
},
|
2020-07-26 10:03:52 +00:00
|
|
|
],
|
2021-01-04 17:03:27 +00:00
|
|
|
};
|