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

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.`,
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,
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`,
{
resolve: "gatsby-plugin-robots-txt",
options: {
host: siteUrl,
sitemap: siteUrl + "/sitemap.xml",
env: {
development: {
policy: [{ userAgent: "*", disallow: ["/"] }],
},
production: {
policy: [{ userAgent: "*", allow: "/" }],
},
},
},
},
{
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
],
};