Skip to content
This repository was archived by the owner on Jun 28, 2025. It is now read-only.

Commit 50aa79d

Browse files
committed
feat(plugins): set importOnBootstrap flag in config-sync plugin to true in non dev environments
1 parent 2d3063b commit 50aa79d

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

cms/config/plugins.ts

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
11
// ./config/plugins.js`
22
"use strict";
33

4-
module.exports = {
5-
menus: {
6-
config: {
7-
layouts: {
8-
menuItem: {
9-
link: [
10-
{
11-
input: {
12-
label: "Page Relation",
13-
name: "page_relation",
14-
type: "relation",
15-
},
16-
grid: {
17-
col: 6,
18-
},
4+
module.exports = ({ env }) => ({
5+
menus: {
6+
config: {
7+
layouts: {
8+
menuItem: {
9+
link: [
10+
{
11+
input: {
12+
label: "Page Relation",
13+
name: "page_relation",
14+
type: "relation",
15+
},
16+
grid: {
17+
col: 6,
18+
},
19+
},
20+
],
21+
},
1922
},
20-
],
2123
},
22-
},
2324
},
24-
},
25-
"config-sync": {
26-
enabled: true,
27-
config: {
28-
syncDir: "config/sync/",
29-
minify: false,
30-
soft: false,
31-
importOnBootstrap: false,
32-
customTypes: [],
33-
excludedTypes: [],
34-
excludedConfig: [],
25+
"config-sync": {
26+
enabled: true,
27+
config: {
28+
syncDir: "config/sync/",
29+
minify: false,
30+
soft: false,
31+
importOnBootstrap: env("NODE_ENV") !== "development",
32+
customTypes: [],
33+
excludedTypes: [],
34+
excludedConfig: [],
35+
},
3536
},
36-
},
37-
};
37+
});

0 commit comments

Comments
 (0)