forked from jmcgaha/craft-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgeneral.php
executable file
·82 lines (63 loc) · 2.11 KB
/
general.php
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
81
82
<?php
/**
* General Configuration
*
* All of your system's general configuration settings go in here. You can see a
* list of the available settings in vendor/craftcms/cms/src/config/GeneralConfig.php.
*
* @see \craft\config\GeneralConfig
*/
use craft\helpers\App;
return [
// Global settings
'*' => [
// Default Week Start Day (0 = Sunday, 1 = Monday...)
'defaultWeekStartDay' => 0,
// Whether generated URLs should omit "index.php"
'omitScriptNameInUrls' => true,
// Control panel trigger word
'cpTrigger' => 'admin',
// Whether the GraphQL API is enabled
'enableGql' => false,
'useEmailAsUsername' => true,
'generateTransformsBeforePageLoad' => true,
// By default caches are regenerated daily. This busts cache when content is changed.
'cacheDuration' => false,
// Make search work with partial matches and not just full matches
'defaultSearchTermOptions' => array(
'subLeft' => true,
'subRight' => true,
),
'aliases' => [
'@basePath' => CRAFT_BASE_PATH . '/public/',
'@baseUrl' => App::env('PRIMARY_SITE_URL'),
],
'resourceBasePath' => '@basePath/cpresources',
],
// Dev environment settings
'dev' => [
// Dev Mode (see https://craftcms.com/guides/what-dev-mode-does)
'devMode' => true,
// Prevent crawlers from indexing pages and following links
'disallowRobots' => true,
'enableTemplateCaching' => false,
],
// Staging environment settings
'staging' => [
// Dev Mode (see https://craftcms.com/guides/what-dev-mode-does)
'devMode' => true,
// Prevent crawlers from indexing pages and following links
'disallowRobots' => true,
// Set this to `false` to prevent administrative changes from being made on Staging
'allowAdminChanges' => false,
// Don’t allow updates on Staging
'allowUpdates' => false,
],
// Production environment settings
'production' => [
// Set this to `false` to prevent administrative changes from being made on Production
'allowAdminChanges' => false,
// Don’t allow updates on Production
'allowUpdates' => false,
],
];