1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | 32x 147x | module.exports = { name: 'static', options: { __root: 'public', public: { type: String, inherit: 'public', env: 'STATIC_PUBLIC' } }, init: ctx => { module.exports.before = [ ctx.utils.modern(ctx.express.static(ctx.options.static.public)) ]; } }; |