-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.js
80 lines (74 loc) · 2.33 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
74
75
76
77
78
79
80
import apostrophe from 'apostrophe';
import dotenv from 'dotenv';
dotenv.config();
apostrophe({
root: import.meta,
shortName: 'starter-kit-hospitality',
baseUrl: process.env.APOS_BASE_URL || 'http://localhost:3000',
nestedModuleSubdirs: true,
modules: {
// Apostrophe module configuration
// *******************************
//
// NOTE: most configuration occurs in the respective modules' directories.
// See modules/@apostrophecms/page/index.js for an example.
//
// Any modules that are not present by default in Apostrophe must at least
// have a minimal configuration here to turn them on: `moduleName: {}`
// ***********************************************************************
// `className` options set custom CSS classes for Apostrophe core widgets.
'@apostrophecms/rich-text-widget': {
options: {}
},
'@apostrophecms/image-widget': {
options: {
className: 'img-fluid'
}
},
'@apostrophecms/video-widget': {
options: {}
},
// The main form module
'@apostrophecms/form': {
options: {
shortcut: 'a,f'
}
},
// The form widget module, allowing editors to add forms to content areas
'@apostrophecms/form-widget': {},
// Form field widgets, used by the main form module to build forms.
'@apostrophecms/form-text-field-widget': {},
'@apostrophecms/form-textarea-field-widget': {},
'@apostrophecms/form-select-field-widget': {},
'@apostrophecms/form-radio-field-widget': {},
'@apostrophecms/form-file-field-widget': {},
'@apostrophecms/form-checkboxes-field-widget': {},
'@apostrophecms/form-boolean-field-widget': {},
'@apostrophecms/form-conditional-widget': {},
'@apostrophecms/sitemap': {
options: {
excludeTypes: [ 'team-member', 'product' ]
}
},
'@apostrophecms/seo': {},
'@apostrophecms/open-graph': {},
// `asset` supports the project's webpack build for client-side assets.
helper: {},
asset: {},
settings: {},
// The project's first custom page type.
'default-page': {},
'content-widget-modules': {
options: {
ignoreNoCodeWarning: true
}
},
'pieces-modules': {
options: {
ignoreNoCodeWarning: true
}
},
// Use Vite bundler
'@apostrophecms/vite': {}
}
});