This repository has been archived by the owner on May 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathgatsby-config.js
56 lines (54 loc) · 1.58 KB
/
gatsby-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
/**
* Copyright (c) 2021 Oracle and/or its affiliates.
* Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
*/
/**
* Configure your Gatsby site with this file.
*
* See: https://www.gatsbyjs.org/docs/gatsby-config/
*/
require('dotenv').config();
module.exports = {
pathPrefix: process.env.PATH_PREFIX,
// Add support for loading some images from local filesystem
plugins: [
{
resolve: '@oracle/gatsby-source-oce',
options: {
name: 'oce',
contentServer: process.env.SERVER_URL,
channelToken: process.env.CHANNEL_TOKEN,
proxyUrl: process.env.PROXY_URL,
items: {
limit: 100,
},
renditions: 'none',
// if true then digital assets are downloaded locally
staticAssetDownload: true,
// This determines the base directory in the path for the assets.
// Used when staticAssetDownload is true
staticAssetRootDir: 'contentServer',
staticUrlPrefix: process.env.PATH_PREFIX,
},
},
{
resolve: 'gatsby-source-graphql',
options: {
// This type will contain remote schema Query type
typeName: 'OCM',
// This is the field under which it's accessible
fieldName: 'ocm',
// URL to query from
url: `${process.env.SERVER_URL}/content/published/api/v1.1/graphql`,
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'images',
path: `${__dirname}/src/images/`,
},
},
'gatsby-plugin-react-helmet',
],
};