|
|
@ -6,11 +6,11 @@ import { authConfig } from "./blitz-client" |
|
|
|
|
|
|
|
|
|
|
|
export const { gSSP, gSP, api } = setupBlitzServer({ |
|
|
|
export const { gSSP, gSP, api } = setupBlitzServer({ |
|
|
|
plugins: [ |
|
|
|
plugins: [ |
|
|
|
AuthServerPlugin({ |
|
|
|
// AuthServerPlugin({
|
|
|
|
...authConfig, |
|
|
|
// ...authConfig,
|
|
|
|
storage: PrismaStorage(db), |
|
|
|
// storage: PrismaStorage(db),
|
|
|
|
isAuthorized: simpleRolesIsAuthorized, |
|
|
|
// isAuthorized: simpleRolesIsAuthorized,
|
|
|
|
}), |
|
|
|
// }),
|
|
|
|
], |
|
|
|
], |
|
|
|
onError: (...args) => console.log("FROM BLITZ SERVER ERROR", ...args), |
|
|
|
onError: (...args) => console.log("FROM BLITZ SERVER ERROR", ...args), |
|
|
|
}) |
|
|
|
}) |
|
|
|