-
Notifications
You must be signed in to change notification settings - Fork 11
/
gatsby-config.ts
52 lines (49 loc) · 1.23 KB
/
gatsby-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
import * as dotenv from 'dotenv';
import { createBcmsMostConfig } from '@becomes/cms-most';
import type { GatsbyConfig } from 'gatsby';
dotenv.config({
path: `.env.${process.env.NODE_ENV}`,
});
const config: GatsbyConfig = {
siteMetadata: {
title: 'cms-gatsby-starter',
siteUrl: 'https://www.yourdomain.tld',
},
plugins: [
'gatsby-plugin-sass',
'gatsby-plugin-sitemap',
'gatsby-plugin-svgr',
'gatsby-plugin-tsconfig-paths',
{
resolve: 'gatsby-plugin-manifest',
options: {
icon: 'src/images/icon.png',
},
},
{
resolve: 'gatsby-source-bcms',
options: createBcmsMostConfig({
cms: {
origin: process.env.BCMS_API_ORIGIN || 'http://localhost:8080',
key: {
id: process.env.BCMS_API_KEY || '6433b6994c02e25452a8a947',
secret:
process.env.BCMS_API_SECRET ||
'4107ecd203ff708a1789439376934e315781d66134d6c0da058bc87583f6e0c9',
},
},
media: {
download: true,
output: 'static/api',
images: {
process: true,
},
},
server: {
port: 3001,
},
}) as any,
},
],
};
export default config;