-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathblitz.config.js
More file actions
30 lines (29 loc) · 839 Bytes
/
blitz.config.js
File metadata and controls
30 lines (29 loc) · 839 Bytes
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
30
const { sessionMiddleware, simpleRolesIsAuthorized } = require("blitz")
const withPWA = require("next-pwa")
module.exports = withPWA({
pwa: {
dest: "/public",
disable: process.env.NODE_ENV === "development",
register: true,
sw: "service-worker.js",
},
middleware: [
sessionMiddleware({
isAuthorized: simpleRolesIsAuthorized,
}),
],
images: {
domains: ["hyperlocal.builtforfifty.workers.dev", "images.unsplash.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
},
*/
typescript: {
ignoreBuildErrors: true,
},
})