-
Notifications
You must be signed in to change notification settings - Fork 143
/
Copy pathdocs.js
28 lines (24 loc) · 851 Bytes
/
docs.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
const DOCS_BASE_PATH = '/docs/';
const CHANGELOG_PER_PAGE = 40;
const CHANGELOG_SLUG = 'changelog';
const CHANGELOG_BASE_PATH = `${DOCS_BASE_PATH}${CHANGELOG_SLUG}/`;
const CHANGELOG_DIR_PATH = `content/${CHANGELOG_SLUG}`;
const CHANGELOG_SLUG_REGEX = /\d{4}-\d{2}-\d{2}/;
const POSTGRESQL_BASE_PATH = '/postgresql/';
const VERCEL_URL =
process.env.VERCEL_ENV === 'preview'
? `https://${process.env.VERCEL_BRANCH_URL}`
: process.env.NEXT_PUBLIC_DEFAULT_SITE_URL;
const HOME_MENU_ITEM = { title: 'Home', slug: 'introduction' };
// We are using ES modules here in order to be able to import variables from this file in gatsby-node.js
module.exports = {
DOCS_BASE_PATH,
CHANGELOG_SLUG,
CHANGELOG_PER_PAGE,
CHANGELOG_BASE_PATH,
CHANGELOG_DIR_PATH,
CHANGELOG_SLUG_REGEX,
POSTGRESQL_BASE_PATH,
VERCEL_URL,
HOME_MENU_ITEM,
};