-
Notifications
You must be signed in to change notification settings - Fork 0
/
gridsome.config.js
35 lines (32 loc) · 1.02 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
// 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`
require('dotenv').config()
module.exports = {
siteName: 'Fredtun',
plugins: [{
use: 'gridsome-source-sanity',
options: {
projectId: 'obo7jda2',
dataset: 'production',
}
},
{
use: '@gridsome/source-airtable',
options: {
apiKey: process.env.AIRTABLE_API_KEY, // required
base: 'appFT0o0L7aB2kmyV', // required
tables: [{
name: 'Leieavtaler', // required
typeName: 'bookedDates', // required
}],
tableName: 'Fredtun', // required
},
},
],
templates: {
SanityBlogpost: '/blogg/:title/:id',
SanityEvent: '/arrangement/:title/:id',
},
}