forked from algolia/instantsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
22 lines (18 loc) · 771 Bytes
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
var algoliaComponents = require('algolia-frontend-components');
var fs = require('fs');
import {rootPath} from './path';
import pkg from '../package.json';
const prod = process.env.NODE_ENV === 'production';
var content = JSON.parse(fs.readFileSync('./src/data/communityHeader.json', 'utf8').toString());
var headerAlgoliaLogo = fs.readFileSync('assets/img/algolia-logo-darkbg.svg', 'utf8').toString();
var headerCommunityLogo = fs.readFileSync('assets/img/algolia-community-dark.svg', 'utf8').toString();
var header = algoliaComponents.communityHeader(content, {
algoliaLogo: headerAlgoliaLogo,
communityLogo: headerCommunityLogo
});
export default {
docsDist: rootPath('docs'),
publicPath: prod ? '/instantsearch.js/v2/' : '/v2/',
header: header,
pkg
};