-
Notifications
You must be signed in to change notification settings - Fork 10
/
gridsome.config.js
71 lines (60 loc) · 2.09 KB
/
gridsome.config.js
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
// This is where project configuration and plugin options are located.
// Learn more: https://gridsome.org/docs/config
// Changes here require a server restart.
// To restart press CTRL + C in terminal and run `gridsome develop`
const yaml = require('js-yaml')
const fs = require('fs')
module.exports = {
siteName: 'Robonomics Academy',
siteDescription: 'The core developers of the Robonomics project, robotics specialists and PhD research scientists offer to pass through compendious experience based on 7 years of work with web 3.0 projects. Get new skills in using modern web technologies to build IoT solutions.',
siteUrl: 'https://robonomics.academy',
titleTemplate: '%s',
prefetch: { mask: '^$', },
plugins: [
{
use: "gridsome-plugin-translateit",
options: {
locales: ["ar","de","el","en","es","fr","hi","it","ja","ko","nl","ru","uk","zh"],
slugifyDefaultLocale: true,
defaultLocale: "en",
translations: [],
routes: yaml.load(fs.readFileSync('./src/data/locales/routes.yaml', 'utf8')),
}
},
{
use: '@gridsome/vue-remark',
options: {
typeName: 'Course',
baseDir: './courses',
// pathPrefix: '/online-course',
template: './src/templates/Course.vue',
plugins: [
['@noxify/gridsome-plugin-remark-embed', {'enabledProviders' : ['Youtube']}],
]
}
},
{
use: "gridsome-plugin-google-sheets-post"
},
{
use: 'gridsome-plugin-seo'
},
{
use: 'gridsome-plugin-matomo',
options: {
host: 'https://matomo.robonomics.network/',
siteId: 1,
// requireConsent: true,
trackerFileName: 'unicorn',
trackerUrl: 'https://matomo.robonomics.network/rainbow.php',
trackerScriptUrl: 'https://matomo.robonomics.network/unicorn.js'
}
}
],
chainWebpack: config => {
// alias for easier access to files
config.resolve.alias.set('@imagesCourses', '/courses/images')
config.resolve.alias.set('@imagesAuthors', '/courses/authors/avatars')
config.mode('development')
}
}