We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d580f2 commit 1708e5cCopy full SHA for 1708e5c
2 files changed
extraPlugin/voidPlugin.js
@@ -0,0 +1,13 @@
1
+const {configValidator, registerPlugin} = require('../dist/scully');
2
+
3
+const voidPlugin = async (route, options) => {
4
+ /**
5
+ * I don't do anything here,
6
+ * just return an empty array
7
+ * as that will effectively remove the route from the list
8
+ * */
9
+ return [];
10
+};
11
12
+voidPlugin[configValidator] = async conf => [];
13
+registerPlugin('router', 'void', voidPlugin);
scully.config.js
@@ -1,5 +1,6 @@
/** load the plugin */
require('./extraPlugin/extra-plugin.js');
+require('./extraPlugin/voidPlugin');
exports.config = {
/** projectRoot is mandatory! */
@@ -88,5 +89,8 @@ exports.config = {
88
89
folder: './blog',
90
},
91
92
+ '/**': {
93
+ type: 'void',
94
+ },
95
96
};
0 commit comments