-
Notifications
You must be signed in to change notification settings - Fork 4
/
app.js
73 lines (62 loc) · 1.97 KB
/
app.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
import apostrophe from 'apostrophe';
apostrophe({
root: import.meta,
shortName: 'public-demo',
// The baseUrl should be overridden in environment variables for other environments.
baseUrl: 'http://localhost:3000',
// See lib/modules for basic project-level configuration of our modules
// responsible for serving static assets, managing page templates and
// configuring user accounts.
modules: {
// Apostrophe module configuration
// Note: most configuration occurs in the respective
// modules' directories. See lib/@apostrophecms/assets/index.js for an example.
// However any modules that are not present by default in Apostrophe must at
// least have a minimal configuration here to turn them on: `moduleName: {}`
'@apostrophecms/vite': {},
localizations: {},
// Custom CSS classes for standard apostrophe widgets
'@apostrophecms/rich-text-widget': {
options: {
className: 'demo-rte'
}
},
'@apostrophecms/image-widget': {
options: {
className: 'demo-image'
}
},
'@apostrophecms/video-widget': {
options: {
className: 'demo-video'
}
},
// Manages apostrophe's overall asset pipeline
'@apostrophecms/asset': {
// When not in production, refresh the page on restart
options: {
// refreshOnRestart: true,
hmr: 'apos'
}
},
'@apostrophecms/seo': {},
// A home for our own project-specific javascript and SASS assets
asset: {},
helper: {},
'cta-links-widget': {},
'columns-widget': {},
'container-widget': {},
'button-widget': {},
'github-prs-widget': {},
// A page type for ordinary pages
'default-page': {},
// A piece type for articles
article: {},
// Tease an article on any page
'article-widget': {},
// Paginated index of articles, and with pages for individual articles
'article-page': {},
topic: {},
'@apostrophecms/import-export': {}
}
});