Skip to content

Commit 05ad4b3

Browse files
committed
fix: use layouts globally
1 parent d7de4ad commit 05ad4b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ app.use(
4545
path: [/\/bull-board*/],
4646
})
4747
);
48+
app.set("layout", "layouts/layout");
49+
app.set("layout extractScripts", true);
4850

4951
// background
5052
if (process.env.BACKGROUND == true) {
@@ -67,8 +69,6 @@ if (process.env.BACKGROUND == true) {
6769

6870
// web
6971
if (process.env.WEB == true) {
70-
app.set("layout", "layouts/layout");
71-
app.set("layout extractScripts", true);
7272
const webRouter = require("./web");
7373
app.use("/", webRouter);
7474
console.info("WEB is up.");

0 commit comments

Comments
 (0)