* Proxy "blitz export" to "next export" (minor) * Add "static" example * Fix manifest missing * fix tsc error * Fix version of Blitz for static example * Use preconstructs monorepo build tooling * Add type that static example needs for compilation * Run "next export" on ".next", not on ".blitz/build/" * Remove forgotten console.log o.O * Don't change type of nextBuild[manifest] * Update static example Blitz version Co-authored-by: Brandon Bayer <b@bayer.ws>
17 lines
366 B
TypeScript
17 lines
366 B
TypeScript
import { DefaultCtx, SessionContext } from "blitz"
|
|
|
|
// Note: You should switch to Postgres and then use a DB enum for role type
|
|
export type Role = "ADMIN" | "USER"
|
|
|
|
declare module "blitz" {
|
|
export interface Ctx extends DefaultCtx {
|
|
session: SessionContext
|
|
}
|
|
export interface Session {
|
|
PublicData: {
|
|
userId: string
|
|
roles: Role[]
|
|
}
|
|
}
|
|
}
|