-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapp.js
More file actions
47 lines (36 loc) · 1.46 KB
/
app.js
File metadata and controls
47 lines (36 loc) · 1.46 KB
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
const path = require('path');
// pm2-runtime is great at running node apps inside containers properly,
// but its arguments can be mistaken for a command line Apostrophe task
if (process.argv.find(arg => arg.match(/ProcessContainer/))) {
process.argv = [ process.argv[0], 'app.js' ];
}
const apos = require('apostrophe')({
shortName: 'a2-onboarding-examples',
// 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/apostrophe-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: `moduleName: {}`
// If a template is not found somewhere else, serve it from the top-level
// `views/` folder of the project
'apostrophe-templates': { viewsFolderFallback: path.join(__dirname, 'views') },
// Add an alt field to images schema, by default the title is used but
// we recommend enabling the alt field for clarity.
'apostrophe-images': {
enableAltField: true,
},
'apostrophe-attachments': {
svgImages: true
},
'social-links-widgets': {},
articles: {},
'articles-pages': {},
'articles-widgets': {},
'products': {},
'categories': {}
}
});