-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathgridsome.config.js
39 lines (37 loc) · 1.16 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
// 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`
module.exports = {
siteName: "Airtable Starter",
plugins: [
{
use: "@gridsome/source-airtable",
options: {
// Add these to a .env file
// Details on finding these values can be found at:
// https://gridsome.org/plugins/@gridsome/source-airtable
apiKey: process.env.AIRTABLE_KEY, //required
baseId: process.env.AIRTABLE_BASE, //required
tables: [
{
name: "Events",
typeName: "Event", //required - needs to match template name
select: {}, //optional
links: [], //optional
},
// {
// name: "Parties",
// typeName: "Parties", //required - needs to match template name
// select: {}, //optional
// links: [], //optional
// },
],
},
},
],
templates: {
Event: "/events/:id", //optional
// Parties: "/parties/:id", //optional
},
};