Searching.ton
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
497 B

2 years ago
// import { AuthClientPlugin } from "@blitzjs/auth"
2 years ago
import { setupBlitzClient } from "@blitzjs/next"
import { BlitzRpcPlugin } from "@blitzjs/rpc"
2 years ago
const authStub = ()=>{
globalThis.__BLITZ_SESSION_COOKIE_PREFIX = "blitz";
return {events:{},middleware:{}, exports: ()=>({})}
}
2 years ago
// export const authConfig = {
// cookiePrefix: "searching-front-cookie-prefix",
// }
//AuthClientPlugin(authConfig)
2 years ago
export const { withBlitz } = setupBlitzClient({
2 years ago
plugins: [authStub(),BlitzRpcPlugin({})],
2 years ago
})
2 years ago