-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprismic.config.js
36 lines (30 loc) · 1023 Bytes
/
prismic.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
// -- Prismic Repo Name
const repoName = 'impact-market';
// -- Prismic API endpoint
// Determines which repository to query and fetch data from
// Configure your site's access point here
const apiEndpoint = `https://${repoName}.cdn.prismic.io/api/v2`;
// -- Access Token if the repository is not public
// Generate a token in your dashboard and configure it here if your repository is private
// eslint-disable-next-line no-process-env
const accessToken = process.env.PRISMIC_KEY;
const configDocuments = [
'pwa-config',
'pwa-modals',
'pwa-translations',
'pwa-user-config'
]
// TODO
// -- Route Resolver rules
// Manages the url links to internal Prismic documents two levels deep (optionals)
// export const Router = {
// routes: [
// {
// path: '/:uid',
// type: 'page'
// }
// ]
// };
const Router = { routes: [] };
const prismicConfiguration = { Router, accessToken, apiEndpoint, configDocuments, repoName };
module.exports = prismicConfiguration;