1
0
mirror of synced 2025-12-19 18:11:23 -05:00
Files
blitz/examples/custom-server/blitz.config.js
2021-04-08 16:31:17 -04:00

18 lines
510 B
JavaScript

const {sessionMiddleware, simpleRolesIsAuthorized} = require("blitz")
module.exports = {
middleware: [
sessionMiddleware({
isAuthorized: simpleRolesIsAuthorized,
}),
],
/* Uncomment this to customize the webpack config
webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => {
// Note: we provide webpack above so you should not `require` it
// Perform customizations to webpack config
// Important: return the modified config
return config
},
*/
}