-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathgatsby-config.js
36 lines (31 loc) · 981 Bytes
/
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
const isDev = () => process.env.NODE_ENV === 'development';
let pathPrefix = isDev() ? '' : '/labs/pixem';
const common = {
plugins: [
'gatsby-plugin-typescript',
'gatsby-plugin-styled-components',
'gatsby-plugin-react-helmet',
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: "UA-117972211-1"
}
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: "Pixem",
short_name: "Pixem",
start_url: `${pathPrefix}/editor`,
background_color: "#212329",
theme_color: "#4CACCD",
display: "standalone",
icon: "static/pixem.png",
}
}
]
};
const config = isDev()
? Object.assign({}, common)
: Object.assign({}, common, {pathPrefix});
module.exports = config;