20 lines
594 B
TypeScript
20 lines
594 B
TypeScript
import { BlitzConfig, sessionMiddleware, simpleRolesIsAuthorized } from "blitz"
|
|
|
|
const config: BlitzConfig = {
|
|
middleware: [
|
|
sessionMiddleware({
|
|
cookiePrefix: "cypress-example",
|
|
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
|
|
},
|
|
*/
|
|
}
|
|
module.exports = config
|