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.
dcbot.tribalwarshelp.com/gatsby-config.js

87 lines
2.1 KiB
JavaScript
Raw Normal View History

const DOMAIN = 'dcbot.tribalwarshelp.com';
const SITE_URL = 'https://' + DOMAIN;
2020-06-30 11:12:39 +00:00
2020-06-28 09:27:32 +00:00
module.exports = {
siteMetadata: {
title: `TWHelp Discord Bot`,
description: `Discord bot for online game Tribalwars. | Real-time notifications about conquered/lost villages.`,
siteUrl: SITE_URL,
twhelpUrl: 'https://tribalwarshelp.com',
2020-06-28 09:27:32 +00:00
botInviteUrl:
'https://discord.com/oauth2/authorize?client_id=707859810900508703&scope=bot&permissions=8',
languages: ['en', 'pl'],
author: 'Dawid Wysokiński',
2020-06-28 09:27:32 +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: `TWHelp Discord Bot`,
2020-06-28 09:27:32 +00:00
short_name: `twdcbot`,
start_url: `/`,
background_color: `#303032`,
theme_color: `#303032`,
2020-06-28 09:27:32 +00:00
display: `minimal-ui`,
icon: `src/images/icon.svg`, // This path is relative to the root of the site.
},
},
2021-01-04 17:10:55 +00:00
{
resolve: `gatsby-theme-material-ui`,
options: {
webFontsConfig: {
fonts: {
google: [
{
family: `Montserrat`,
variants: [`300`],
},
],
},
},
2021-01-04 17:10:55 +00:00
},
},
2020-06-28 09:27:32 +00:00
`gatsby-plugin-sitemap`,
2020-06-28 12:39:28 +00:00
{
resolve: 'gatsby-plugin-robots-txt',
2020-06-28 12:39:28 +00:00
options: {
host: SITE_URL,
sitemap: SITE_URL + '/sitemap.xml',
2020-06-28 12:39:28 +00:00
env: {
development: {
policy: [{ userAgent: '*', disallow: ['/'] }],
2020-06-28 12:39:28 +00:00
},
production: {
policy: [{ userAgent: '*', allow: '/' }],
2020-06-28 12:39:28 +00:00
},
},
},
},
2020-06-30 11:12:39 +00:00
{
resolve: 'gatsby-plugin-i18n',
2020-06-30 11:12:39 +00:00
options: {
langKeyDefault: 'en',
langKeyForNull: 'en',
2020-06-30 11:12:39 +00:00
useLangKeyLayout: false,
prefixDefault: false,
},
},
{
resolve: `@kichiyaki/gatsby-plugin-plausible`,
options: {
domain: DOMAIN,
customDomain: process.env.PLAUSIBLE_CUSTOM_DOMAIN,
},
},
2020-06-28 09:27:32 +00:00
],
};