-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgridsome.config.js
98 lines (94 loc) · 2.13 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
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
const postcssNested = require("postcss-nested");
const tailwind = require("tailwindcss");
const postcssPlugins = [tailwind(), postcssNested];
require("dotenv").config();
module.exports = {
siteName: "DMG Community Resources",
siteDescription: "DMG community resources",
siteUrl: "https://resources.dmg.to",
cacheBusting: false,
plugins: [
{
use: "gridsome-plugin-gtm",
options: {
id: `GTM-${process.env.gtm_id}`,
enabled: true,
debug: true,
},
},
{
use: "@gridsome/source-filesystem",
options: {
typeName: "ReadingList",
path: "./content/reading-list/*.md",
},
},
{
use: "@gridsome/source-airtable",
options: {
apiKey: process.env.AIRTABLE_API_KEY,
base: process.env.AIRTABLE_BASE_ID,
tableName: "Resources", // required
tables: [
{
name: "Resources",
typeName: "Resource",
select: {
view: "viw1OAwyVvoltzX4t",
},
links: [
{
fieldName: "Type",
typeName: "Type",
},
{
fieldName: "Category",
typeName: "Category",
},
],
},
{
name: "Types",
typeName: "Type",
links: [
{
fieldName: "Category",
typeName: "Category",
},
],
},
{
name: "Categories",
typeName: "Category",
links: [
{
fieldName: "Type",
typeName: "Type",
},
],
},
{
name: "Jobs",
typeName: "Gig",
},
],
},
},
],
templates: {
ReadingList: "/reading-list/:slug",
},
transformers: {
remark: {
externalLinksTarget: "_blank",
externalLinksRel: ["nofollow", "noopener", "noreferrer"],
},
},
css: {
loaderOptions: {
postcss: {
plugins: postcssPlugins,
},
},
},
};