mirror of
https://github.com/SrIzan10/starters.git
synced 2026-05-01 11:05:16 +00:00
20 lines
586 B
TypeScript
20 lines
586 B
TypeScript
import { BlitzConfig, sessionMiddleware, simpleRolesIsAuthorized } from "blitz"
|
|
|
|
const config: BlitzConfig = {
|
|
middleware: [
|
|
sessionMiddleware({
|
|
cookiePrefix: "blitzjs",
|
|
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
|