-
Notifications
You must be signed in to change notification settings - Fork 1
/
nuxt.config.ts
100 lines (98 loc) · 5.43 KB
/
nuxt.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
import NuxtConfiguration from "@nuxt/config";
import settings from "./settings";
const nuxtConfig: NuxtConfiguration = {
head: {
title: "Jeanne",
meta: [
{ charset: "utf-8" },
{ name: "viewport", content: "width=device-width, initial-scale=1" },
{ hid: "author", name: "author", content: "Kurozero" },
{ hid: "description", name: "description", content: "Jeanne, A feature rich discord bot" },
{ hid: "theme-color", name: "theme-color", content: "#281F32" },
{ hid: "twitter-card", name: "twitter:card", content: "summary_large_image" },
{ hid: "twitter-site", name: "twitter:site", content: "@JeanneDiscord" },
{ hid: "twitter-title", name: "twitter:title", content: "Jeanne" },
{ hid: "twitter-description", name: "twitter:description", content: "Jeanne, A feature rich discord bot" },
{ hid: "twitter-image", name: "twitter:image", content: "https://jeannebot.com/avatar.jpg" },
{ hid: "twitter-creator", name: "twitter:creator", content: "@pvdbroek98" },
{ hid: "og-title", property: "og:title", content: "Jeanne" },
{ hid: "og-url", property: "og:url", content: "https://jeannebot.com" },
{ hid: "og-image", property: "og:image", content: "https://jeannebot.com/avatar.jpg" },
{ hid: "og-type", property: "og:type", content: "website" },
{ hid: "og-site_name", property: "og:site_name", content: "jeannebot.com" },
{ hid: "og-description", property: "og:description", content: "Jeanne, A feature rich discord bot." },
{ hid: "og-locale", property: "og:locale", content: "en-US" },
{ hid: "application-name", property: "application-name", content: "Jeanne" },
{ hid: "fragment", property: "fragment", content: "!" },
{ hid: "apple-mobile-web-app-capable", property: "apple-mobile-web-app-capable", content: "yes" },
{ hid: "msapplication-config", property: "msapplication-config", content: "https://kurozeropb.info/head-icons/browserconfig.xml" }
],
link: [
{ rel: "stylesheet", href: "https://use.fontawesome.com/releases/v5.11.2/css/all.css" },
{ rel: "stylesheet", href: "https://cdn.materialdesignicons.com/4.5.95/css/materialdesignicons.min.css" },
{ rel: "icon", type: "image/x-icon", href: "/head-icons/favicon.ico" },
{ rel: "apple-touch-icon-precomposed", sizes: "57x57", href: "/head-icons/apple-touch-icon-57x57.png" },
{ rel: "apple-touch-icon-precomposed", sizes: "114x114", href: "/head-icons/apple-touch-icon-114x114.png" },
{ rel: "apple-touch-icon-precomposed", sizes: "72x72", href: "/head-icons/apple-touch-icon-72x72.png" },
{ rel: "apple-touch-icon-precomposed", sizes: "144x144", href: "/head-icons/apple-touch-icon-144x144.png" },
{ rel: "apple-touch-icon-precomposed", sizes: "60x60", href: "/head-icons/apple-touch-icon-60x60.png" },
{ rel: "apple-touch-icon-precomposed", sizes: "120x120", href: "/head-icons/apple-touch-icon-120x120.png" },
{ rel: "apple-touch-icon-precomposed", sizes: "76x76", href: "/head-icons/apple-touch-icon-76x76.png" },
{ rel: "apple-touch-icon-precomposed", sizes: "152x152", href: "/head-icons/apple-touch-icon-152x152.png" },
{ rel: "icon", type: "image/png", href: "/head-icons/favicon-196x196.png" },
{ rel: "icon", type: "image/png", href: "/head-icons/favicon-96x96.png" },
{ rel: "icon", type: "image/png", href: "/head-icons/favicon-32x32.png" },
{ rel: "icon", type: "image/png", href: "/head-icons/favicon-16x16.png" },
{ rel: "icon", type: "image/png", href: "/head-icons/favicon-128.png" },
{ rel: "manifest", href: "/head-icons/manifest.json" },
{ rel: "shortcut icon", href: "/head-icons/favicon.ico" },
{ rel: "mask-icon", href: "/head-icons/android-chrome-512x512.jpg", color: "#7A202C" }
],
script: [
{ type: "text/javascript", src: "/js/anti-adblock.js" }
],
noscript: [
{ innerHTML: "This website requires JavaScript." }
]
},
plugins: [
{ src: "plugins/global-utils.ts", ssr: false },
{ src: "plugins/vue-typer.ts", ssr: false }
],
modules: [
"@nuxtjs/component-cache",
"@nuxtjs/axios",
"@nuxtjs/google-analytics",
"@nuxtjs/google-adsense",
"@nuxtjs/sentry",
"@nuxtjs/sitemap"
],
"google-analytics": { id: settings.google.analytics.trackingId },
"google-adsense": {
id: settings.google.adsense.adClient,
analyticsUacct: settings.google.analytics.accountId,
analyticsDomainName: settings.google.analytics.domain,
test: settings.google.test
},
sentry: {
dsn: settings.sentry.dsn,
config: { release: settings.version }
},
sitemap: {
hostname: "https://jeannebot.com",
gzip: true,
defaults: {
changefreq: "daily",
priority: 1,
lastmod: new Date(),
lastmodrealtime: true
}
},
build: {
extend(config, { isDev, isClient }) {
if (isDev && isClient)
config.module.rules.push({ enforce: "pre", test: /\.(ts|js|vue)$/, loader: "eslint-loader", exclude: /(node_modules)/ });
}
}
};
export default nuxtConfig;