-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathblitz.config.ts
29 lines (28 loc) · 952 Bytes
/
blitz.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import { BlitzConfig, sessionMiddleware, simpleRolesIsAuthorized } from "blitz"
const config: BlitzConfig = {
middleware: [
sessionMiddleware({
cookiePrefix: "postreview-app",
isAuthorized: simpleRolesIsAuthorized,
}),
],
// Add environment variables for the client
env: {
ALGOLIA_APP_ID: process.env.ALGOLIA_APP_ID,
ALGOLIA_API_SEARCH_KEY: process.env.ALGOLIA_API_SEARCH_KEY,
ALGOLIA_PREFIX: process.env.ALGOLIA_PREFIX,
UPLOADCARE_PUBLIC_KEY: process.env.UPLOADCARE_PUBLIC_KEY,
},
images: {
domains: ["ucarecdn.com", "lh3.googleusercontent.com"],
},
/* 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